Hyperledger Fabric:注册检查失败:Idemix注册信息不存在 [英] Hyperledger Fabric: Enrollment check failed: Idemix enrollment information does not exist

查看:117
本文介绍了Hyperledger Fabric:注册检查失败:Idemix注册信息不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我们尝试运行 fabric-ca-client 时,都会出现此错误.下面的示例:

we get this error whenever we try to run fabric-ca-client. Example below:

# fabric-ca-client register --url https://ica-org:7054 --id.name user-org --id.affiliation=org
2019/03/19 20:18:07 [INFO] Configuration file location: /home/fabric-ca-client-config.yaml
2019/03/19 20:18:07 [INFO] TLS Enabled
2019/03/19 20:18:07 [ERROR] Enrollment check failed: Idemix enrollment information does not exist
Error: Enrollment information does not exist. Please execute enroll command first. Example: fabric-ca-client enroll -u http://user:userpw@serverAddr:serverPort

我们如何解决这个问题?

How can we fix this?

推荐答案

fabric-ca-client 无法找到任何X509或Idemix身份时,就会发生这种情况. fabric-ca-client 需要使用一个身份进行初始化(除非它用于注册一个用户).它首先尝试从 fabric-ca-client-config.yaml 文件或 -M 中指定的 mspdir 位置加载X509身份.命令行参数,该参数优先于配置文件中的 mspdir .如果无法找到X509身份,它将寻找idemix身份.如果此操作同样失败,则会显示相关错误.

This happens when fabric-ca-client cannot find any X509 or Idemix identity. fabric-ca-client needs to be initialized with an identity (except when its being used to enroll a user). It first tries to load an X509 identity from the mspdir location specified in the fabric-ca-client-config.yaml file or the -M command line argument which takes precedence over mspdir in config file. And if its not able to find X509 identity it will look for an idemix identity. If this fails as well it displays the error in question.

对于X509身份:

  • 其公共证书必须位于 signcerts
  • 和私钥必须位于 keystore
  • ,颁发公共/专用密钥对的颁发机构的公共证书必须位于 cacerts 文件夹中(如果使用了中间ca,则其证书必须位于 intermediatecerts )
  • its public cert needs to be in signcerts
  • and private key needs to be in keystore
  • and the public cert of the authority who issued the public/private keypair needs to be in cacerts folder (if an intermediate ca was used then its cert needs to be in intermediatecerts)

上面的所有文件夹都在 mspdir

all the folders above are under the mspdir

这篇关于Hyperledger Fabric:注册检查失败:Idemix注册信息不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆