fabric-ca-client
Posted 程序之家
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了fabric-ca-client相关的知识,希望对你有一定的参考价值。
fabric-ca-client enroll -u http://admin:[email protected]:7054
- 指定用户名密码
fabric-ca-client enroll -u http://admin:[email protected]: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:[email protected]: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
以上是关于fabric-ca-client的主要内容,如果未能解决你的问题,请参考以下文章