Tools, FAQ, Tutorials:
"fabric-ca-client register" - Register Second Admin
How to register a second admin with the "fabric-ca-client register" command?
✍: FYIcenter.com
You can follow this tutorial to register a second admin
with the "fabric-ca-client register" command.
1. Make sure the Fabric CA Server is running.
2. Go to the Fabric CA Client system where you have the "admin" wallet created in the previous tutorial:
$ cd ~/fabric-ca/native-client/admin $ export FABRIC_CA_CLIENT_HOME=~/fabric-ca/native-client/admin
3. Run the "fabric-ca-client register"
$ ~/go/bin/fabric-ca-client register --id.name admin2 \ --id.affiliation org1.department1 \ --id.attrs 'hf.Revoker=true,admin=true:ecert' [INFO] Configuration file location: ./fabric-ca-client-config.yaml [INFO] 127.0.0.1:46164 POST /register 201 0 "OK" Password: WSATRHlgxxnk
4. List identities on the Fabric CA Server:
$ ~/go/bin/fabric-ca-client identity list
Name: admin, Type: client, Affiliation: , Max Enrollments: -1,
Attributes: [{Name:hf.Registrar.Attributes Value:* ECert:false}
{Name:hf.AffiliationMgr Value:1 ECert:false}
{Name:hf.Registrar.Roles Value:* ECert:false}
{Name:hf.Registrar.DelegateRoles Value:* ECert:false}
{Name:hf.Revoker Value:1 ECert:false}
{Name:hf.IntermediateCA Value:1 ECert:false}
{Name:hf.GenCRL Value:1 ECert:false}]
Name: admin2, Type: client, Affiliation: org1.department1, Max Enrollments: -1,
Attributes: [{Name:admin Value:true ECert:true}
{Name:hf.Revoker Value:true ECert:false}
{Name:hf.EnrollmentID Value:admin2 ECert:true}
{Name:hf.Type Value:client ECert:true}
{Name:hf.Affiliation Value:org1.department1 ECert:true}]
As you can see, "admin2" is created with the password of "WSATRHlgxxnk". You can pass this information for another user so he/she can run the "fabric-ca-client enroll" command to create his/her own certificate and save it a wallet.
⇒ Second Admin Enroll to Create Wallet
⇐ Requirements for Registering New Identities
2019-09-16, ∼1548🔥, 0💬
Popular Posts:
How to add images to my EPUB books Images can be added into book content using the XHTML "img" eleme...
Where can I download the EPUB 2.0 sample book "The Metamorphosis" by Franz Kafka? You can following ...
How to use the JSON to XML Conversion Tool at utilities-online.info? If you want to try the JSON to ...
How To Pass Arrays By References? in PHP? Like normal variables, you can pass an array by reference ...
Can Two Forms Be Nested? Can two forms be nested? The answer is no and yes: No. You can not nest two...