[英]hyperledger fabric calling enrollment endpoint failed with error
I was trying to deploy hyperledger fabric on multiple hosts using this code and used the balance transfer chaincode using node-SDK.我试图使用此代码在多个主机上部署超级账本结构,并使用 node-SDK 使用余额转移链代码。 While I tried to enroll the user, I got the following error:当我尝试注册用户时,出现以下错误:
[2019-01-10 18:12:20.635] [ERROR] Helper -
[FabricCAClientService.js]: Failed to enroll admin, error:Error:
Calling enrollment endpoint failed with error [Error: write EPROTO
140678895621952:error:140770FC:SSL
routines:SSL23_GET_SERVER_HELLO:unknown
protocol:../deps/openssl/openssl/ssl/s23_clnt.c:827:
]
at ClientRequest.request.on (/home/muzzam/Downloads/hlf-docker-swarm/hlf-app/node_modules/fabric-ca-client/lib/FabricCAClient.js:492:12)
at emitOne (events.js:116:13)
at ClientRequest.emit (events.js:211:7)
at TLSSocket.socketErrorListener (_http_client.js:387:9)
at emitOne (events.js:116:13)
at TLSSocket.emit (events.js:211:7)
at onwriteError (_stream_writable.js:417:12)
at onwrite (_stream_writable.js:439:5)
at _destroy (internal/streams/destroy.js:39:7)
at TLSSocket.Socket._destroy (net.js:568:3)
can anyone give me an idea of what could be going wrong?任何人都可以让我知道可能出了什么问题吗? If you need any of my configuration file, i can provide that如果您需要我的任何配置文件,我可以提供
I was able to find my error.我能够找到我的错误。 I was not setting the TLS enabled parameter in docker containing CA service.我没有在包含 CA 服务的 docker 中设置 TLS 启用参数。
You need to set the following properties in yaml file containg the CA services:您需要在包含 CA 服务的 yaml 文件中设置以下属性:
environment:
- FABRIC_CA_SERVER_TLS_ENABLED=true
- FABRIC_CA_SERVER_TLS_CERTFILE=<location to certificate file>
- FABRIC_CA_SERVER_TLS_KEYFILE=<location to key file>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.