Skip to content

Commit bbee1b2

Browse files
author
Anil Ambati
committedJan 25, 2018
[FAB-7908] Change hf.admin attr to admin
Recently, Fabric CA was changed to restrict custom attributes from starting with "hf." prefix. But fabric-ca sample was using hf.admin custom attribute. Hence it was failing. This change set changes custom attribute "hf.admin" to "admin". Change-Id: I6c9324e62717c26aab3c2d308d9fb098ecd2fb65 Signed-off-by: Anil Ambati <aambati@us.ibm.com>
1 parent 038c496 commit bbee1b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎fabric-ca/scripts/setup-fabric.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ function registerOrdererIdentities {
4949
COUNT=$((COUNT+1))
5050
done
5151
log "Registering admin identity with $CA_NAME"
52-
# The admin identity has the "hf.admin" attribute which is added to ECert by default
53-
fabric-ca-client register -d --id.name $ADMIN_NAME --id.secret $ADMIN_PASS --id.attrs "hf.admin=true:ecert"
52+
# The admin identity has the "admin" attribute which is added to ECert by default
53+
fabric-ca-client register -d --id.name $ADMIN_NAME --id.secret $ADMIN_PASS --id.attrs "admin=true:ecert"
5454
done
5555
}
5656

@@ -67,8 +67,8 @@ function registerPeerIdentities {
6767
COUNT=$((COUNT+1))
6868
done
6969
log "Registering admin identity with $CA_NAME"
70-
# The admin identity has the "hf.admin" attribute which is added to ECert by default
71-
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"
70+
# The admin identity has the "admin" attribute which is added to ECert by default
71+
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"
7272
log "Registering user identity with $CA_NAME"
7373
fabric-ca-client register -d --id.name $USER_NAME --id.secret $USER_PASS
7474
done

0 commit comments

Comments
 (0)
Please sign in to comment.