Tools, FAQ, Tutorials:
Add Identity using JSON String
How to add a new identity using a JSON string?
✍: FYIcenter.com
You can follow this tutorial to
add a new identity using a JSON string.
1. 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 identity add" command:
$ ~/go/bin/fabric-ca-client identity add google \ --json '{"secret": "googlepw", "type": "client"}' [INFO] Configuration file location: ./fabric-ca-client-config.yaml [INFO] 127.0.0.1:38058 POST /identities 201 0 "OK" Successfully added identity - Name: google, Type: client, Affiliation: , Max Enrollments: -1, Secret: googlepw, Attributes: [{Name:hf.EnrollmentID Value:google ECert:true} {Name:hf.Type Value:client ECert:true} {Name:hf.Affiliation Value: ECert:true}]
As you can see "google" identity is created with a type of "client". Now you can pass google:googlepw to Google team, so they can enroll to create their certificate and save it in their wallet.
Â
⇒ Setting Up Orderer Peer Manually
⇠Register Identity of "user" Type
⇑ Fabric CA (Certificate Authority)
⇑⇑ Hyperledger Tutorials
2019-09-16, 911👍, 0💬
Popular Posts:
How To Read a File in Binary Mode in PHP? If you have a file that stores binary data, like an execut...
How To Pass Arrays By References? in PHP? Like normal variables, you can pass an array by reference ...
How to add request URL Template Parameters to my Azure API operation to make it more user friendly? ...
How to use the XML to JSON Conversion Tool at jsonformatter.org? If you want to try the XML to JSON ...
Where Can I get a copy of the RSS XML Schema? RSS XML Schema is an XML Schema that defines how an RS...