Hyperledger Fabric:注册检查失败:Idemix注册信息不存在

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

每当我们尝试运行fabric-ca-client时,我们都会收到此错误。示例如下:

# 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

我们该如何解决这个问题?

hyperledger-fabric
1个回答
0
投票

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

对于X509身份:

  • 它的公共证书需要在signcerts
  • 和私钥需要在keystore
  • 发布公钥/私钥对的权威机构的公共证书需要在cacerts文件夹中(如果使用中间ca,那么其证书需要在intermediatecerts

上面的所有文件夹都在mspdir

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