From 038c496f4c685ae89c449833f808dcc8e0a1598d Mon Sep 17 00:00:00 2001 From: Anil Ambati Date: Wed, 3 Jan 2018 14:51:59 -0500 Subject: [PATCH] [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 --- fabric-ca/scripts/setup-fabric.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fabric-ca/scripts/setup-fabric.sh b/fabric-ca/scripts/setup-fabric.sh index 3983dbb1cf..5507e4ad3c 100755 --- a/fabric-ca/scripts/setup-fabric.sh +++ b/fabric-ca/scripts/setup-fabric.sh @@ -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