fabric-ca-client enroll -u http://admin:adminpw@localhost:7054
/root/.fabric-ca-client:
总用量 12
-rwxr-xr-x 1 root root 6504 5月 7 10:43 fabric-ca-client-config.yaml
drwx------ 6 root root 4096 5月 7 10:43 msp
/root/.fabric-ca-client/msp:
总用量 16
drwxr-xr-x 2 root root 4096 5月 7 10:43 cacerts
drwxr-xr-x 2 root root 4096 5月 7 10:43 intermediatecerts
drwx------ 2 root root 4096 5月 7 10:43 keystore
drwxr-xr-x 2 root root 4096 5月 7 10:43 signcerts
/root/.fabric-ca-client/msp/cacerts:
总用量 4
-rw-r--r-- 1 root root 843 5月 7 10:43 localhost-7054.pem
/root/.fabric-ca-client/msp/intermediatecerts:
总用量 0
-rw-r--r-- 1 root root 0 5月 7 10:43 localhost-7054.pem
/root/.fabric-ca-client/msp/keystore:
总用量 4
-rwx------ 1 root root 241 5月 7 10:43 a200ab29874934776405e53dcc54166e3c2e8b37290430ef8d6b3ca0d6944cbc_sk
/root/.fabric-ca-client/msp/signcerts:
总用量 4
-rw-r--r-- 1 root root 867 5月 7 10:43 cert.pem
- 指定用户名密码
fabric-ca-client enroll -u http://admin:adminpw@localhost:7054 --id.name peer1 --id.secret peer1pw
fabric-ca-client register --id.name peer1 --id.type peer --id.affiliation org1.department1 --id.secret peer1pw -u http://admin:adminpw@localhost:7054
fabric-ca-client register --id.name peer4
Password: JMFSjbptVxTk
fabric-ca-client identity list
Name: admin, Type: client, Affiliation: , Max Enrollments: -1,
Attributes: [{Name:hf.GenCRL Value:1 ECert:false} {Name:hf.Registrar.Attributes Value:* ECert:false} {Name:hf.AffiliationMgr Value:1 ECert:false} {Name:hf.Registrar.Roles Value:peer,orderer,client,user ECert:false} {Name:hf.Registrar.DelegateRoles Value:peer,orderer,client,user ECert:false} {Name:hf.Revoker Value:1 ECert:false} {Name:hf.IntermediateCA Value:1 ECert:false}]
Name: peer1, Type: peer, Affiliation: org1.department1, Max Enrollments: -1,
Attributes: [{Name:hf.EnrollmentID Value:peer1 ECert:true} {Name:hf.Type Value:peer ECert:true} {Name:hf.Affiliation Value:org1.department1 ECert:true}]
Name: peer2, Type: peer, Affiliation: org1.department1, Max Enrollments: -1,
Attributes: [{Name:hf.EnrollmentID Value:peer2 ECert:true} {Name:hf.Type Value:peer ECert:true} {Name:hf.Affiliation Value:org1.department1 ECert:true}]
Name: peer3, Type: peer, Affiliation: org1.department1, Max Enrollments: -1,
Attributes: [{Name:hf.EnrollmentID Value:peer3 ECert:true} {Name:hf.Type Value:peer ECert:true} {Name:hf.Affiliation Value:org1.department1 ECert:true}]
Name: peer4, Type: client, Affiliation: , Max Enrollments: -1,
Attributes: [{Name:hf.EnrollmentID Value:peer4 ECert:true} {Name:hf.Type Value:client ECert:true} {Name:hf.Affiliation Value: ECert:true}]
Name: peer5, Type: client, Affiliation: , Max Enrollments: -1,
Attributes: [{Name:hf.EnrollmentID Value:peer5 ECert:true} {Name:hf.Type Value:client ECert:true} {Name:hf.Affiliation Value: ECert:true}]
Name: peer6, Type: peer, Affiliation: org1.department1, Max Enrollments: -1,
Attributes: [{Name:hf.EnrollmentID Value:peer6 ECert:true} {Name:hf.Type Value:peer ECert:true} {Name:hf.Affiliation Value:org1.department1 ECert:true}]
fabric-ca-client identity list --id user1
fabric-ca-client identity add user1 --json '{"secret": "user1pw", "type": "user", "affiliation": "org1", "max_enrollments": 1, "attrs": [{"name": "hf.Revoker", "value": "true"}]}'
http://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html