Created
July 10, 2020 00:23
-
-
Save kctam/5be6c9eec34de3cfd247f9bf89425ca7 to your computer and use it in GitHub Desktop.
Companion Guide for Fabric CA Operation Guide - script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker-compose up -d rca-org2 | |
sleep 5 | |
export FABRIC_CA_CLIENT_TLS_CERTFILES=/tmp/hyperledger/org2/ca/crypto/ca-cert.pem | |
export FABRIC_CA_CLIENT_HOME=/tmp/hyperledger/org2/ca/admin | |
fabric-ca-client enroll -d -u https://rca-org2-admin:rca-org2-adminpw@0.0.0.0:7055 | |
sleep 5 | |
fabric-ca-client register -d --id.name peer1-org2 --id.secret peer1PW --id.type peer -u https://0.0.0.0:7055 | |
fabric-ca-client register -d --id.name peer2-org2 --id.secret peer2PW --id.type peer -u https://0.0.0.0:7055 | |
fabric-ca-client register -d --id.name admin-org2 --id.secret org2AdminPW --id.type user --id.attrs "abac.init=true:ecert" -u https://0.0.0.0:7055 | |
fabric-ca-client register -d --id.name user-org2 --id.secret org2UserPW --id.type user -u https://0.0.0.0:7055 | |
echo | |
fabric-ca-client identity list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment