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}]

  1. fabric-ca-client identity list --id user1

 

  1. 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的更多相关文章

  1. Fabric CA环境的集成

    我们前面关于Fabric的所有文章中用到的例子都没有CA Server,都是由cryptogen这个工具根据crypto-config.yaml而生成的.但是在实际生产环境中,我们肯定不能这么做,我们 ...

  2. (转)Fabric CA环境的集成

    PS:因为我部署的是集群(4peer+1order),需要为order,org1,org2分别建立一个CA,拿org1使用举例,获取org1根证书私钥名称:PRIVATE_KEY.sh #!/bin/ ...

  3. Hyperledger Fabric CA User’s Guide——开始(三)

    Fabric CA User’s Guide——开始 先决条件 安装Go 1.9+ 设置正确的GOPATH环境变量 安装了libtool和libtdhl-dev包 下面是在Ubuntu上安装libto ...

  4. Hyperledger Fabric CA User’s Guide——CA用户指南(一)

    Fabric CA用户指南 Hyperledger Fabric CA是一种用于Hyperledger Fabric的认证机构(CA). 它提供了如下特性: 登记身份(注册ID),或者连接到作为用户注 ...

  5. Hyperledger Fabric CA的命令行用法

    介绍Hyperledger Fabric CA的命令行方式简单用法 Hyperledger Fabric CA由server和client两部分组成. 设置两个环境变量 export FABRIC_C ...

  6. Hyperledger Fabric CA User’s Guide——配置设置(四)

    配置设置 Fabric CA提供了三种方案去配置Fabric CA服务端和客户端,优先顺序是: CLI flags(标识) 环境变量 配置文件 在本文档的其余部分中,我们将对配置文件进行更改.但是,可 ...

  7. Fabric CA/数字证书管理

    MSP(Membership Service Provider)成员管理服务提供商 名词: 1.CSR(Cerificate Signing Request):证书签署请求文件 CSR里包含申请者的 ...

  8. Hyperledger:Fabric CA 用户指南 [译]

    Fabric CA 用户指南 Fabric CA 是 Hyperledger Fabric 的官方配套认证设施. 原文链接:http://hyperledger-fabric.readthedocs. ...

  9. Hyperledger Fabric CA User’s Guide——概述(二)

    概述 下面的图表说明了如何将Hyperledger Fabric CA与总体的Hyperledger Fabric结构相匹配. 有两种方式与一种Hyperledger Fabric CA服务器进行交互 ...

  10. Fabric CA的部署与使用

    Fabric CA是Hyperledger Fbric的证书认证中心,提供以下功能:用户信息的登记与注册,数字证书的颁发与管理. 前言 之前使用CA服务一直是在docker容器中运行下载好的CA镜像, ...

随机推荐

  1. node 使用笔记

    1 安装 buffertools 因为使用mjpeg-proxy的关系,需要编译buffertools中的C++代码文件,怎奈何一直出错. make: Entering directory `/srv ...

  2. The last access date is not changed even after reading the file on Windows 7

    https://superuser.com/questions/251263/the-last-access-date-is-not-changed-even-after-reading-the-fi ...

  3. 【BZOJ】2289: 【POJ Challenge】圆,圆,圆

    题解 二分一个横坐标,过这个横坐标做一条和y轴平行的直线,相当于在这条直线上做区间覆盖,如果区间有交的话,那么答案是True 否则的话取两个不相交的区间,如果这两个圆相离或相切则不合法 否则看看相交的 ...

  4. 022.Zabbix自定义(邮箱)脚本告警01

    待补充 有需要,请留言!

  5. 单页面vue引入百度统计的使用方法!

    最近组长安排着做一个项目,h5的应用下载项目,想着做起来还是比较容易,可是看到提出的需求,我就有点懵逼了!需要对应用的下载进行统计!!!我当时就想着我前端怎么对页面点击按钮就行数据统计啊!我以前的项目 ...

  6. 【BZOJ 1430】 1430: 小猴打架 (Prufer数列)

    1430: 小猴打架 Time Limit: 5 Sec  Memory Limit: 162 MBSubmit: 625  Solved: 452 Description 一开始森林里面有N只互不相 ...

  7. mysql where 条件中的字段有NULL值时的sql语句写法

    比如你有一个sql语句联表出来之后是这样的 id           name            phone                  status 1            张三     ...

  8. luoguP4389 付公主的背包 多项式exp

    %%%dkw 话说这是个论文题来着... 考虑生成函数\(OGF\) 对于价值为\(v\)的物品,由于有\(10^5\)的件数,可以看做无限个 那么,其生成函数为\(x^0 + x^{v} + x^{ ...

  9. 使用 IntraWeb (5) - 页面布局之 TFrame

    IW 对 TFrame(还是之前那个), 这在页面布局中很有用. 如果多个页面都有一个共同的部分(譬如页眉.页脚.菜单.边栏等), 可以将这些共同的部分放在一个 TFrame 中, 从而方便统一与修改 ...

  10. 国内代码托管git-osc基础使用教程

    git-osc是开源中国社区团队推出的基于Git的快速的.免费的.稳定的在线代码托管平台,不限制私有库和公有库数量.国内同类的有taocode.SVNchina等等 个人更喜欢git-osc的界面与操 ...