I checkout project fabric-samples and run file startFabric.sh to start Fabric blockchain network.
After that, I run node enrollAdmin.js
to enroll the new admin
Now, I want to use the command line of fabric-ca-client to add a new user to org1. I execute the commands below:
Access to ca_peerOrg1 docker
docker exec -it ca_peerOrg1 bash
I check the value of
$FABRIC_CA_CLIENT_HOME
is unset
$FABRIC_CA_HOME
is/etc/hyperledger/fabric-ca-server
- Go to
/etc/hyperledger/fabric-ca-server
directory and check command
fabric-ca-client
- And run this command
fabric-ca-client enroll -u http://admin:adminpw@localhost:7054
But it occurs error below:
Anyone could help? Thanks for reading