mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
[FAB-7592] Give hf.Registrar attrs to admins
The admin identity needs hf.Registrar.Roles attribute so it can register other identities. This attribute was introduced recently in fabric-ca v1.1.0-alpha. Change-Id: Ie2a0ef705f07a35580c6bc8a85a34b9b9d937623 Signed-off-by: Anil Ambati <aambati@us.ibm.com>
This commit is contained in:
parent
47da1bbeb3
commit
038c496f4c
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ function registerPeerIdentities {
|
|||
done
|
||||
log "Registering admin identity with $CA_NAME"
|
||||
# The admin identity has the "hf.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.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,hf.admin=true:ecert,abac.init=true:ecert"
|
||||
log "Registering user identity with $CA_NAME"
|
||||
fabric-ca-client register -d --id.name $USER_NAME --id.secret $USER_PASS
|
||||
done
|
||||
|
|
|
|||
Loading…
Reference in a new issue