fabric-ca-client
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
fabric-ca-client的更多相关文章
- Fabric CA环境的集成
我们前面关于Fabric的所有文章中用到的例子都没有CA Server,都是由cryptogen这个工具根据crypto-config.yaml而生成的.但是在实际生产环境中,我们肯定不能这么做,我们 ...
- (转)Fabric CA环境的集成
PS:因为我部署的是集群(4peer+1order),需要为order,org1,org2分别建立一个CA,拿org1使用举例,获取org1根证书私钥名称:PRIVATE_KEY.sh #!/bin/ ...
- Hyperledger Fabric CA User’s Guide——开始(三)
Fabric CA User’s Guide——开始 先决条件 安装Go 1.9+ 设置正确的GOPATH环境变量 安装了libtool和libtdhl-dev包 下面是在Ubuntu上安装libto ...
- Hyperledger Fabric CA User’s Guide——CA用户指南(一)
Fabric CA用户指南 Hyperledger Fabric CA是一种用于Hyperledger Fabric的认证机构(CA). 它提供了如下特性: 登记身份(注册ID),或者连接到作为用户注 ...
- Hyperledger Fabric CA的命令行用法
介绍Hyperledger Fabric CA的命令行方式简单用法 Hyperledger Fabric CA由server和client两部分组成. 设置两个环境变量 export FABRIC_C ...
- Hyperledger Fabric CA User’s Guide——配置设置(四)
配置设置 Fabric CA提供了三种方案去配置Fabric CA服务端和客户端,优先顺序是: CLI flags(标识) 环境变量 配置文件 在本文档的其余部分中,我们将对配置文件进行更改.但是,可 ...
- Fabric CA/数字证书管理
MSP(Membership Service Provider)成员管理服务提供商 名词: 1.CSR(Cerificate Signing Request):证书签署请求文件 CSR里包含申请者的 ...
- Hyperledger:Fabric CA 用户指南 [译]
Fabric CA 用户指南 Fabric CA 是 Hyperledger Fabric 的官方配套认证设施. 原文链接:http://hyperledger-fabric.readthedocs. ...
- Hyperledger Fabric CA User’s Guide——概述(二)
概述 下面的图表说明了如何将Hyperledger Fabric CA与总体的Hyperledger Fabric结构相匹配. 有两种方式与一种Hyperledger Fabric CA服务器进行交互 ...
- Fabric CA的部署与使用
Fabric CA是Hyperledger Fbric的证书认证中心,提供以下功能:用户信息的登记与注册,数字证书的颁发与管理. 前言 之前使用CA服务一直是在docker容器中运行下载好的CA镜像, ...
随机推荐
- mybatis使用时遇到的一些问题------模糊查询、处理大于号小于号、相关函数替换空值
在mybatis中可能会用到的方法 1.模糊查询 <select id="showByIdName" parameterType="User" resul ...
- 【转】Git命令大全(非常齐全)
$ git init // 初始化一个Git仓库$ git status // 查看仓库的状态$ git add . // 将所有修改添加到暂存区$ git add * // Ant风格添 ...
- HDU 4348 To the moon(主席树区间修改)
题意 给你一个区间,支持如下操作: 在一段区间内加上一个值,并生成一个历史版本 查询某个版本下一段区间内的和 回到一个历史版本上并舍弃之后的版本 做法 这就是主席树区间修改裸题啦QwQ 上一篇博客我讲 ...
- 【LOJ】#2268. 「SDOI2017」苹果树
题解 显然权值都是正的,我们最深的那个点一定延伸到了某个叶子 我们抛去这条链之外再选K个点即可 如果直接对一棵树选K个点,满足这样的依赖关系,可以通过一个后序遍历的顺序做出来 转移方法是 \(dp[i ...
- hive的实现机制
hive利用hdfs存储数据文件,利用MapReduce查询数据. 数据库:支持在线联机业务(实时.事务控制) 数据仓库:存储历史数据,面向主题的.主要用于离线数据分析的.
- Centos下命令行编译MapReduce代码(Java)并打包在Hadoop中执行
前提条件:搭建好Hadoop系统 新建文件夹:input 和 output hdfs dfs -mkdir /inputhdfs dfs -mkdir /output 查看文件系统 hdfs df ...
- linux系统入门一些常用命令解析
接触IT行业的时候,就使用了ubuntu系统做开发,那个时候是一头雾水,从习惯了window下的界面操作,到终端下的命令行操作,着实一开始让人很不习惯.但是没办法,那个时候公司每个人都用Ubuntu系 ...
- AWT事件模型
1.什么是事件 1)事件------描述发生了什么的对象 [事件与异常类似,是由一个个类构成的,当一个事件产生的时候,实际上是由对应的那个事件的类来生成了一个对象,这个对象封装了与这个事件相关的信息, ...
- 使用Synchronized块同步方法
synchronized关键字有两种用法.第一种就是在<使用Synchronized关键字同步类方法>一文中所介绍的直接用在方法的定义中.另外一种就是synchronized块.我们不仅可 ...
- mongodb for windows安装
1,下载mongodb for windwos 下载地址:https://www.mongodb.com/download-center#community 2,创建db和log的文件夹 D:\dat ...