如何将密码生成工具生成的密钥与结构CA同步

问题描述 投票:0回答:1

我在我的项目中使用结构,

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:未知授权机构签名的证书

生成密码原工具时,我是否需要提供与矩阵ca相关的任何详细信息。

hyperledger-fabric hyperledger hyperledger-fabric-ca
1个回答
0
投票

@ fama,

MSP error: the supplied identity is not valid: x509: certificate signed by unknown authority

可能您已使用一个CA颁发的网络证书

之后您与另一个CA创建了管理证书

这就是为什么要抱怨的原因

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

© www.soinside.com 2019 - 2024. All rights reserved.