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

How to sync cryptogen tool generated keys with 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 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 error: the supplied identity is not valid: x509: certificate signed by unknown authority

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

@fama,

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

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

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

这就是它抱怨的原因

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