Step 1 - Bring up the Fabric CA
The following excerpt from voternet-starter.sh brings up the Fabric CA docker containers. In short certificate authorities (aka CA) are the software component which verifies the identity of a node or client based on cryptographic certs.Fabric has made it easier to start off with fabric ca docker images however in real life there will mostly a third part CA (like verisign , GoDaddy)
docker-compose -f $COMPOSE_FILE_CA up -d 2>&1
go get github.com/hyperledger/fabric-ca/cmd/...
. organizations/fabric-ca/registerEnroll.sh
infoln "Creating InvestorOrg Identities"
createInvestorOrg
infoln "Creating ManagementOrg Identities"
createManagementOrg
infoln "Creating Orderer Org Identities"
createOrderer
take a look at the ca docker compose file . It brings up 3 containers based on fabric-ca docker image (first representing CA of investor organisation , second representing CA of corporate/management organisation , third other CA representing Ordering Service organisation)
next we install the fabric-ca-client command which will be used to register the peer nodes of each org with the ca-server.
we then invoke functions in registerEnroll.sh to register all the users and peers for each org with respective fabric ca server.
Last updated
Was this helpful?