Hyperledger Fabric 组织 MSP 中 MSP 的自定义详细信息(国家、州、地区)

Custom Details(Country, State, Locality) for MSP in Organisation MSP of Hyperledger Fabric

Hyperledger Fabric Documentation 声明我们可以添加其他参数,即组织的规范和 CA。该示例显示可以注释掉其他代码以提供值。

我想做什么:

我在生成证书时遇到的错误:

2019-01-09 13:44:50.557 IST [common/tools/configtxgen/localconfig] Load -> PANI 003 Error unmarshaling config into struct: 3 error (s) decoding:

  • 'Organizations[1]' has invalid keys: CA
  • 'Profiles[TwoOrgsChannel].Application.Organizations[0]' has invalid keys: CA
  • 'Profiles[TwoOrgsOrdererGenesis].Consortiums[SampleConsortium].Organizations[0]' has invalid keys: CA

我尝试过的:

有没有我遗漏或做错了什么?

我重新安装了 fabric 1.4 的二进制文件并在 crypto-config.yaml 中定义了以下内容:

# Setting up orderer of the network
OrdererOrgs:

  - Name: Orderer
    Domain: example.com
    CA:
      Country: IN
      Province: Karnataka
      Locality: Bengaluru
    Specs:
     - Hostname: orderer

# Setting up peer orgs of the network
PeerOrgs:

 - Name: Org1
   Domain: org1.example.com
   EnableNodeOUs: true
   CA:
     Country: IN
     Province: Karnataka
     Locality: Bengaluru
   # Template count is the number of peer nodes for this organization
   Template:
     Count: 2

   Users:
     Count: 1

我为用于 CSR 的 SubjectDN 提供了错误的值。