结构1.4:握手失败并出现致命错误SSL_ERROR_SSL:错误:1408F10B:SSL例程:SSL3_GET_RECORD:版本号错误

时间:2019-09-30 11:13:40

标签: openssl ssl-certificate hyperledger tls1.2 hyperledger-fabric-ca

我知道这可能是重复的问题。我没有找到有效的答案。这里有什么问题。

我正在尝试使用客户端应用程序连接到我的光纤网络。在我当前的配置中,管理员和用户注册成功。但是,每当我尝试在peer0中查询时,都会显示此错误。

我的节点版本为8.9.12。

ccpPath path: /home/hypuser/fabric-samples/servicebook-fabric/connection.json
Wallet path: /home/hypuser/fabric-samples/servicebook-fabric/wallet
E0930 03:49:55.417145688    5824 ssl_transport_security.cc:1238] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.
E0930 03:49:55.418689495    5824 ssl_transport_security.cc:1238] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.
E0930 03:49:56.416984736    5824 ssl_transport_security.cc:1238] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.
E0930 03:49:56.418080418    5824 ssl_transport_security.cc:1238] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.
E0930 03:49:58.103991314    5824 ssl_transport_security.cc:1238] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.
E0930 03:49:58.105143769    5824 ssl_transport_security.cc:1238] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.
2019-09-30T10:49:58.414Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051
2019-09-30T10:49:58.416Z - error: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051
2019-09-30T10:49:58.416Z - error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://localhost:7051
Failed to evaluate transaction: Error: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Failed to connect before the deadline URL:grpcs://localhost:7051

1 个答案:

答案 0 :(得分:0)

订购者和对等方未启用TLS。我已通过将 CORE_PEER_TLS_ENABLED 设置为 true

来解决此问题。

对等:-

# TLS settings
- CORE_PEER_TLS_ENABLED=true

Oderer:-

# TLS settings
- ORDERER_GENERAL_TLS_ENABLED=true