hyperledger-fabric - super 账本结构 : Why doesn't cryptogen generate all the necessary crypto material to register new users?

标签 hyperledger-fabric hyperledger hyperledger-fabric-ca

我正在使用 cryptogen 为我正在构建的 Fabric 网络生成所有加密 Material 。我可以成功启动网络并部署链代码。但是,我在尝试注册新用户时遇到了问题。我正在遵循 asset-transfer-private-data 教程,部署链代码后,我运行

fabric-ca-client register --caname ca.org1 --id.name org1-client --id.secret org1-password --id.type client --mspdir ./config/crypto-config/peerOrganizations/org1/msp

并得到错误

2020/10/03 12:20:11 [INFO] Configuration file location: /home/user/network3.2/config/crypto-config/peerOrganizations/org1/fabric-ca-client-config.yaml
2020/10/03 12:20:11 [ERROR] Enrollment check failed: Idemix enrollment information does not exist
Error: Enrollment information does not exist. Please execute enroll command first. Example: fabric-ca-client enroll -u http://user:userpw@serverAddr:serverPort

没有fabric-ca-client-config.yaml 文件。我指定的 mspdir 具有目录 signcerts、keystore 和 cacerts,根据 Hyperledger Fabric: Enrollment check failed: Idemix enrollment information does not exist需要。但是,signcerts 和 keystore 目录都是空的,而它们应该分别包含公共(public)证书和私钥。

如何生成这些文件?谢谢。

最佳答案

cryptogen 是一个实用程序,可让您快速生成加密 Material 以开始使用。它与 Fabric CA 没有任何直接联系(有意)。

您唯一能做的就是利用为每个组织生成的 CA key 对(在 ca 文件夹下)作为启动 Fabric CA 实例时使用的根 key 对。

关于hyperledger-fabric - super 账本结构 : Why doesn't cryptogen generate all the necessary crypto material to register new users?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64188382/

相关文章:

java - 使用 Hyperledger Fabric Java sdk 获取区 block 信息

hyperledger - 我们如何在 Hyperledger Fabric v1.0 中使用多个 channel 跟踪出处的同时加强隐私保护?

hyperledger-fabric - 如何使用 raft 在正在运行的 super 账本结构网络中添加新的排序节点?

hyperledger-fabric - super 账本结构 : ServerHandshake TLS handshake bad certificate server=PeerServer AND ServerHandshake TLS handshake EOF

docker - 使用修改后的fabric-server-config初始化fabric ca

ssl - Hyperledger Fabric - 来自 fabric-ca 的带有 TLS 的外部链码

docker - 在 Hyperledger Fabric 中创建并加入 channel 构建您的第一个网络演练

用户和节点之间的 super 账本关系

hyperledger-fabric - 创建新 channel 时出错 'BAD_REQUEST -- error authorizing update: error validating DeltaSet'