Hyperledger fabric msp 目录分析

本人也做fabric 项目搭建、开发、浏览器、sdk、共识算法的测试、改进等工作、有问题或需要,可以加q 260261476,欢迎指导!

cryptogen

one orderer organization and one peer organization Org1, with one peer node defined in Org1.

OrdererOrgs:
  - Name: Orderer
    Domain: example.com
    Specs:
      - Hostname: orderer
PeerOrgs:
  - Name: Org1
    Domain: org1.example.com
    Template:
      Count: 1
    Users:
      Count: 1

When we generate the crypto material based on this configuration file
在这里插入图片描述
In ca directory, it is where the root certificate and signing key of the Certificate Authority (CA) for org1.example.com. All certificates inside org1.example.com are issued and signed by this CA.

In users directory, it contains all users under org1.example.com. The first one Admin@org1.example.com is created by system. We see there is another User1@org1.example.com. It is created when we specify Users: Count: 1 in the configuration file. If we need more, we just change the number and more users will be created. Inside Admin and the users, there is a standard msp directory.

In peers directory, it contains all the peer node under org1.example.com. The number of peers created is specified in the Template: Count: 1 in the configuration file. Change this number if we need more peer node for Org1. The peer node is designated as peern.org1.example.com, where n is 0, 1, etc. Inside each peer node, there is a standard msp directory.

Finally, msp directory under peers or users has a similar directory structure. Here are the directories we are interested in,

  • cacerts: the CA certificate of org1.example.com, that is,
    ca.org1.example.com-cert.pem.
  • keystore: the signkey of the entity (user or peer node)
  • signcerts: the certificate of the entity (user or peer node)

fabric ca

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值