如何使用 Hyperledger fabric 创建排序者和对等密钥和证书

How to create the orderer and peer key and certificates using Hyperledger fabric

我需要了解 Hyperledger fabric 和 fabric CA

1. How to create the orderer and peer certificate and key pair using fabric-ca

2. How to query the affiliation and CA name using fabric, do we need to write chain code and query them, or can I query them without using chain code through fabric node js.

3. I see Domain in crypto-config file. Do I need run any domain service or need to buy some domain name. If I am using fabric ca is there anything equivalent to a cryoto-config domain?

4. Is it possible to update the member details once it's created? If it's possible, if I change the password of the member or affiliation of the member does the certificate will get reflect to?
  1. 通过注册实体、注册 MSP 和 TLS 配置文件以及在文件夹之间复制丢失的内容。如果您愿意,可以制作自己的脚本。 https://hyperledger-fabric-ca.readthedocs.io/en/release-1.4/users-guide.html#fabric-ca-client https://hyperledger-fabric-ca.readthedocs.io/en/latest/clientcli.html

  2. https://fabric-sdk-node.github.io/release-1.4/FabricCAServices.html https://godoc.org/github.com/hyperledger/fabric-sdk-go/pkg/client/msp

  3. crypto-config 中的那个域用于复合节点和排序节点 domain/names,正如您应该观察到的那样。与往常一样,您可以购买域、使用 docker 内部名称服务或直接使用 IP 地址(如果您愿意)。如果配置正确,一切正常。请注意 TLS 证书包含 CN 或 SAN 字段中使用的域名或 IP(fabric-ca-client 中的 --csr.hosts 参数)。

  4. 您可以编辑身份,注册反映这些更改的新证书,并随时使用它们更新您的节点。请注意 admin 文件夹中的证书定义了哪些证书被识别为管理员(管理员角色是每个证书,而不是每个身份),因此重新注册管理员证书可能很麻烦。