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镜像, ...
随机推荐
- SVN服务器搭建和使用-转载
SVN服务器搭建和使用(一)-转载 原文地址:http://www.cnblogs.com/xiaobaihome/archive/2012/03/20/2407610.html Subversion ...
- 【Java】 大话数据结构(2) 线性表之单链表
本文根据<大话数据结构>一书,实现了Java版的单链表. 每个结点中只包含一个指针域的链表,称为单链表. 单链表的结构如图所示: 单链表与顺序存储结构的对比: 实现程序: package ...
- ApiPost自动化测试基础之:流程测试
我们在<ApiPost自动化测试基础之:接口参数依赖的情景处理>和<ApiPost自动化测试基础之:如何使用测试校验(测试用例)?>分别讲解了ApiPost自动化测试的基础知识 ...
- 使用HttpServlet简单实例
使用HttpServlet简单实例 package com.kettas.servlet ; import javax.servlet.* ; import javax.servlet.http.* ...
- collectionView代理方法快速设置cell大小上下左右间隔
#define JianGe 25 #define GeShu 4 #define ScreenWidth ([UIScreen mainScreen].bounds.size.width) #def ...
- Python基础笔记(三)
1. 循环与流程控制 (1) for myList1 = ["A", "B", "C", "D"] # 正序遍历 for ...
- 垂直居中Demo
换行文字垂直居中1 换行文字垂直居中,兼容所有浏览器 换行文字垂直居中2 换行文字垂直居中,兼容所有浏览器 固定宽高图片垂直居中1 固定宽高图片垂直居中2 图片自适应容器宽高垂直居中 CSS3垂直居中 ...
- Codeforces Round #284 (Div. 1) A. Crazy Town 计算几何
A. Crazy Town 题目连接: http://codeforces.com/contest/498/problem/A Description Crazy Town is a plane on ...
- hdu 5742 It's All In The Mind 水题
It's All In The Mind 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5742 Description Professor Zhan ...
- CentOS 7设置KVM硬盘模式为SCSI
找到一下节点,把target节点的dev改成s开头,bus改成scsi即可,并删除address节点: 以此内推,如果要修改为ide需要修改dev为h开头,bus改成ide. 参考: https:// ...