hyperledger-fabric - 如何将cryptogen工具生成的密钥与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 错误:提供的身份无效:x509:证书由未知机构签名
在生成加密工具时,我是否需要提供与 Fabric ca 相关的任何详细信息。
解决方案
@法玛,
MSP error: the supplied identity is not valid: x509: certificate signed by unknown authority
您可能使用了由一个 CA 颁发的网络证书
稍后您使用另一个 CA 创建了管理员证书
这就是它抱怨的原因
删除所有容器,清除所有内容并重新开始,确保您不会两次从 cryptogen 生成证书
推荐阅读
- java - 添加 Array[][] 到 ArrayList 替换和添加元素,而不是仅仅添加
- r - 从数字转换时间/日期
- javascript - 从 python 调用/调用 Javascript 函数 html 中的烧瓶函数
- javascript - WordPress 使用 Backbone JS 客户端上传媒体
- javascript - 如何在html中单击页面加载上的链接?
- python - 使用python从Lucene中查找搜索命中的位置
- spring - 使用 docker 部署项目的问题
- flutter - bloc state is the same after coming back to a page even though it was explicitly changed
- javascript - 使用 Angular 检索 firebase 实时数据
- regex - 带有 javascript 排序的正则表达式