Hyperledger fabric 结构注册用户错误:自签名证书

Hyperledger fabric 结构注册用户错误:自签名证书,hyperledger-fabric,hyperledger,Hyperledger Fabric,Hyperledger,我正在使用docker容器运行fabric ca服务器,并使用fabric节点注册用户。当我通过fabric节点注册管理员时,它工作正常,创建钱包文件夹。当我试图注册用户时,它会抛出一个错误 Failed to register user : Error: Calling register endpoint failed with error [Error: self signed certificate] 请提供任何建议。register命令应如下所示: fabric-ca-client

我正在使用docker容器运行fabric ca服务器,并使用fabric节点注册用户。当我通过fabric节点注册管理员时,它工作正常,创建钱包文件夹。当我试图注册用户时,它会抛出一个错误

 Failed to register user : Error: Calling register endpoint failed with
 error [Error: self signed certificate]

请提供任何建议。register命令应如下所示:

fabric-ca-client register -d --id.name $ORG_ADMIN --id.secret $ORG_ADMIN_PASSWORD --id.type client --id.affiliation $ORG_AFFILIATION
url: https://ca.org0.domain.tld:7054

mspdir: msp

tls:
  certfiles: ca-tls.pem

csr:
  names:
    - C: US
      ST: New York
      L: New York
      O: Org0
      OU: Department0

caname: org0-ca

bccsp:
    default: SW
    sw:
        hash: SHA2
        security: 256
        filekeystore:
            keystore: msp/keystore
fabric\u ca\u client\u主页中的fabric-ca-client-config.yaml应该如下所示:

fabric-ca-client register -d --id.name $ORG_ADMIN --id.secret $ORG_ADMIN_PASSWORD --id.type client --id.affiliation $ORG_AFFILIATION
url: https://ca.org0.domain.tld:7054

mspdir: msp

tls:
  certfiles: ca-tls.pem

csr:
  names:
    - C: US
      ST: New York
      L: New York
      O: Org0
      OU: Department0

caname: org0-ca

bccsp:
    default: SW
    sw:
        hash: SHA2
        security: 256
        filekeystore:
            keystore: msp/keystore
请检查url和tls.certfiles(如果您的CA正在使用tls)

在上一步中注册后,msp目录必须包含CA管理员的凭据