Hyperledger Fabric:ClientHandshake 错误:客户端 TLS 握手失败,错误:EOF remoteaddress=[::1]:7051

时间:2021-06-10 17:13:41

标签: ssl hyperledger-fabric

我正在尝试使用 Hyperledger Fabric 教程在提供的 Fabric 示例中使用测试网络。我已经成功安装了所有先决条件并启动了网络,但是当我尝试创建频道时,它引发了 ClientHandshake 错误。

教程相关页面:https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html
您可以在其中查看测试网络的 Github 链接:https://github.com/hyperledger/fabric-samples/tree/main/test-network

我使用的是 macOS Big Sur [2020 MacBook Pro],并按照教程中的 macOS 说明进行操作。

错误信息:

...
Channel 'mychannel' created
Joining org1 peer to the channel...
Using organization 1
+ peer channel join -b ./channel-artifacts/mychannel.block
+ res=1
+ peer channel join -b ./channel-artifacts/mychannel.block
+ res=1
+ peer channel join -b ./channel-artifacts/mychannel.block
+ res=1
+ peer channel join -b ./channel-artifacts/mychannel.block
+ res=1
2021-06-10 19:38:34.968 IST [comm.tls] ClientHandshake -> ERRO 001 Client TLS handshake failed after 1.178599ms with error: EOF remoteaddress=[::1]:7051
2021-06-10 19:38:35.972 IST [comm.tls] ClientHandshake -> ERRO 002 Client TLS handshake failed after 1.881928ms with error: EOF remoteaddress=[::1]:7051
2021-06-10 19:38:37.503 IST [comm.tls] ClientHandshake -> ERRO 003 Client TLS handshake failed after 2.60866ms with error: EOF remoteaddress=[::1]:7051
Error: error getting endorser client for channel: endorser client failed to connect to localhost:7051: failed to create new connection: context deadline exceeded
After 5 attempts, peer0.org1 has failed to join channel 'mychannel' 

这与 TLS 证书有关吗?我遇到了两个可能相关的问题,但它们与 ServerHandshake 错误有关:

  1. Hyperledger Fabric: ServerHandshake TLS handshake bad certificate server=PeerServer AND ServerHandshake TLS handshake EOF
  2. Hyperledger Fabric How to generate peer sans certificates via fabric-ca-client

任何明确说明我应该采取哪些步骤来解决此错误的解决方案都将不胜感激。

0 个答案:

没有答案