mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-22 17:45:10 +00:00
Merge "[FAB-7908] Change hf.admin attr to admin"
This commit is contained in:
commit
5a0520197f
1 changed files with 4 additions and 4 deletions
|
|
@ -49,8 +49,8 @@ function registerOrdererIdentities {
|
||||||
COUNT=$((COUNT+1))
|
COUNT=$((COUNT+1))
|
||||||
done
|
done
|
||||||
log "Registering admin identity with $CA_NAME"
|
log "Registering admin identity with $CA_NAME"
|
||||||
# The admin identity has the "hf.admin" attribute which is added to ECert by default
|
# The admin identity has the "admin" attribute which is added to ECert by default
|
||||||
fabric-ca-client register -d --id.name $ADMIN_NAME --id.secret $ADMIN_PASS --id.attrs "hf.admin=true:ecert"
|
fabric-ca-client register -d --id.name $ADMIN_NAME --id.secret $ADMIN_PASS --id.attrs "admin=true:ecert"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -67,8 +67,8 @@ function registerPeerIdentities {
|
||||||
COUNT=$((COUNT+1))
|
COUNT=$((COUNT+1))
|
||||||
done
|
done
|
||||||
log "Registering admin identity with $CA_NAME"
|
log "Registering admin identity with $CA_NAME"
|
||||||
# The admin identity has the "hf.admin" attribute which is added to ECert by default
|
# The admin identity has the "admin" attribute which is added to ECert by default
|
||||||
fabric-ca-client register -d --id.name $ADMIN_NAME --id.secret $ADMIN_PASS --id.attrs "hf.Registrar.Roles=client,hf.Registrar.Attributes=*,hf.Revoker=true,hf.GenCRL=true,hf.admin=true:ecert,abac.init=true:ecert"
|
fabric-ca-client register -d --id.name $ADMIN_NAME --id.secret $ADMIN_PASS --id.attrs "hf.Registrar.Roles=client,hf.Registrar.Attributes=*,hf.Revoker=true,hf.GenCRL=true,admin=true:ecert,abac.init=true:ecert"
|
||||||
log "Registering user identity with $CA_NAME"
|
log "Registering user identity with $CA_NAME"
|
||||||
fabric-ca-client register -d --id.name $USER_NAME --id.secret $USER_PASS
|
fabric-ca-client register -d --id.name $USER_NAME --id.secret $USER_PASS
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue