Hyperledger fabric 如何将cryptogen工具生成的密钥与fabric CA同步

Hyperledger fabric 如何将cryptogen工具生成的密钥与fabric CA同步,hyperledger-fabric,hyperledger,hyperledger-fabric-ca,Hyperledger Fabric,Hyperledger,Hyperledger Fabric Ca,我在我的项目中使用织物 1.I have generated the keypairs using the cryptogen tool. 2.I have initiated the fabric ca server using CA key, which is generated using above cryptogen tool. 3.I enroll the admin to the fabric CA its generate the wallet with private key

我在我的项目中使用织物

1.I have generated the keypairs using the cryptogen tool.
2.I have initiated the fabric ca server using CA key, which is generated using above cryptogen tool.
3.I enroll the admin to the fabric CA its generate the wallet with private key and public key and certificate.
4.Then i register the user to that fabric ca server i get the user certificate, private key.
5. Then i create the channel and install the chain code and initiate it.
当我使用上面的用户注册从节点js查询链码时,它会抛出错误

MSP错误:提供的标识无效:x509:由未知授权机构签署的证书

在生成cryptogen工具时,我是否需要提供与fabric ca相关的任何详细信息。

@fama

MSP error: the supplied identity is not valid: x509: certificate signed by unknown authority
您可能使用了由一个CA颁发的网络证书

稍后,您使用另一个CA创建了管理员证书

这就是它抱怨的原因


删除所有容器,清除所有内容,然后重新开始确保不会两次从cryptogen生成证书

感谢您的响应,我解决了问题,结构ca和cryptogen工具生成的x509证书不匹配。