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

问题描述:

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

I know that this may be duplicate issue. I did not find a valid answer. What can the be wrong here.

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

I am trying connect to my fabric network using client application. In my current configuration, admin and user enrollment is successful. But whenever I am trying to query in my peer0, it shows this error.

我的节点版本为8.9.12.

My node verion is 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

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

TLS was not enabled for orderer and peer. I have fixed the problem by enabling CORE_PEER_TLS_ENABLED to true

对等:-

# TLS settings
- CORE_PEER_TLS_ENABLED=true

Oderer:-

# TLS settings
- ORDERER_GENERAL_TLS_ENABLED=true