尝试使用 Fabric-ca 启动对等点时出现 msp 错误

Error with msp when try to Launch Peers with Fabric-ca

目前,我遵循 Fabric CA 操作指南 -> https://hyperledger-fabric-ca.readthedocs.io/en/latest/operations_guide.html# 和 Fabric-ca-1.4.7。

但是当我尝试使用 docker (peer1-org1) 启动对等点时,会出现一些错误,例如: ERRO 030 Cannot run peer because error when setting up MSP of type bccsp from directory /tmp/hyperledger/org1/peer1/msp: KeyMaterial not found in SigningIdentityInfo

ERRO 02f Cannot run peer because error when setting up MSP of type bccsp from directory /tmp/hyperledger/org1/peer1/msp: the supplied identity is not valid: x509: certificate signed by unknown authority

当我按照指南操作时,文件夹填充的某些操作没有正确发生,例如 -> Enroll Orderer Org 的 CA Admin: /tmp/hyperledger/org0/ca/admin 什么都没有发生,它在另一个文件夹 (.fabric-ca-client) 上或再次在 msp 文件夹上,因为所有密钥库和 cacerts 都在同一个文件夹 (.fabric-ca-client) 上。

为了到达启动对等点的步骤,我不得不做一些技巧,比如搜索我需要的文件在哪里,因为它们不在普通文件夹中或修改 Fabric-ca-client 的默认 cmd。 我的目标只是启动一个默认网络,就像教程中那样,但使​​用的是 Fabric-ca。

那么,我的步骤出了什么问题?

在启动对等点之前没有发生错误。

如果你想使用 Fabric CA 启动一个简单的网络,你可以尝试 运行 test-network 的 fabric-samples。使用命令:./network.sh up createChannel -ca。在 network.sh shell 脚本中逐行浏览,您将了解如何轻松友好地使用 Fabric CA。