Hyperledger fabric Hyperledger explorer | start.sh | ssl |传输|安全| SSL3 |获取|记录

Hyperledger fabric Hyperledger explorer | start.sh | ssl |传输|安全| SSL3 |获取|记录,hyperledger-fabric,hyperledger-explorer,Hyperledger Fabric,Hyperledger Explorer,我尝试使用以下URL安装并运行hyperledger explorer 一切正常。但最后,我得到了错误 ************************************************************************************ **************************** Hyperledger Explorer ********************************** ****************************

我尝试使用以下URL安装并运行hyperledger explorer 一切正常。但最后,我得到了错误

************************************************************************************
**************************** Hyperledger Explorer **********************************
************************************************************************************
***** Please check the log [logs/console/console-2019-08-16.log] for any error *****
************************************************************************************

An identity for the admin user: admin already exists in the wallet 

E0816 13:40:17.255321114    4411 ssl_transport_security.cc:1229] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number. 

E0816 13:40:18.256594682    4411 ssl_transport_security.cc:1229] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number. 

E0816 13:40:20.126334198    4411 ssl_transport_security.cc:1229] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number. 2019-08-16T08:10:20.256Z - [31merror[39m: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 2019-08-16T08:10:20.257Z - [31merror[39m: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 

E0816 13:40:23.194952082    4411 ssl_transport_security.cc:1229] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number. 2019-08-16T08:10:23.263Z - [31merror[39m: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051

FabricConfig, this.config.channels  mychannel
<<<<<<<<<<<<<<<<<<<<<<<<<< Explorer Error >>>>>>>>>>>>>>>>>>>>>
Error :  [ 'Default client peer is down and no channel details available database' ]
Received kill signal, shutting down gracefully
<<<<<<<<<<<<<<<<<<<<<<<<<< Closing explorer  >>>>>>>>>>>>>>>>>>>>>
Closed out connections
************************************************************************************
****************************超级分类账浏览器**********************************
************************************************************************************
*****请检查日志[logs/console/console-2019-08-16.log]是否有任何错误*****
************************************************************************************
钱包中已存在管理员用户的身份:admin
E0816 13:40:17.255321114 4411 ssl\u传输\u安全。cc:1229]握手失败,出现致命错误ssl\u错误\u ssl:错误:1408F10B:ssl例程:SSL3\u获取\u记录:错误的版本号。
E0816 13:40:18.256594682 4411 ssl_传输_安全。cc:1229]握手失败,出现致命错误ssl_错误_ssl:错误:1408F10B:ssl例程:SSL3_获取_记录:错误的版本号。
E0816 13:40:20.126334198 4411 ssl\u传输\u安全。cc:1229]握手失败,出现致命错误ssl\u错误\u ssl:错误:1408F10B:ssl例程:SSL3\u获取\u记录:错误的版本号。2019-08-16T08:10:20.256Z-[31merror[39m:[Remote.js]:错误:在截止日期URL之前连接失败:grpcs://localhost:7051 2019-08-16T08:10:20.257Z-[31merror[39m:[Channel.js]:错误:在截止日期URL之前连接失败:grpcs://localhost:7051 
E0816 13:40:23.194952082 4411 ssl_传输_安全。cc:1229]握手失败,出现致命错误ssl_错误_ssl:错误:1408F10B:ssl例程:SSL3_获取_记录:错误版本号。2019-08-16T08:10:23.263Z-[31merror[39m:[Remote.js]:错误:未能在截止日期前连接URL:grpcs://localhost:7051
FabricConfig,this.config.channels mychannel

您的远程站点未启用TLS,但您正在尝试建立TSL连接。在我的网络中集成客户端应用程序时,我遇到了相同的错误


我假设您正在尝试将HP Explorer连接到HP Fabric网络。如果要禁用Hyperledger Explorer的TLS,您必须对连接配置文件进行两次更改。它通常位于
app/platform/Fabric/connection profile/first network.json
。文件名取决于您使用的网络

您必须设置
“tlsEnable”:false,
,然后将对等方的url协议从grpcs更改为grpc,例如
“url”:grpc://localhost:7051“,

我的整个连接配置文件如下所示:

{
    "name": "first-network",
    "version": "1.0.0",
    "license": "Apache-2.0",
    "client": {
        "tlsEnable": false,
        "adminUser": "admin",
        "adminPassword": "adminpw",
        "enableAuthentication": true,
        "organization": "Org1",
        "connection": {
            "timeout": {
                "peer": {
                    "endorser": "300"
                },
                "orderer": "300"
            }
        }
    },
    "channels": {
        "mychannel": {
            "peers": {
                "peer0.org1.example.com": {}
            },
            "connection": {
                "timeout": {
                    "peer": {
                        "endorser": "6000",
                        "eventHub": "6000",
                        "eventReg": "6000"
                    }
                }
            }
        }
    },
    "organizations": {
        "Org1": {
            "mspid": "Org1MSP",
            "adminPrivateKey": {
                "path": "/tmp/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore/key.pem"
            },
            "signedCert": {
                "path": "/tmp/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts/Admin@org1.example.com-cert.pem"
            }
        }
    },
    "peers": {
        "peer0.org1.example.com": {
            "tlsCACerts": {
                "path": "/tmp/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt"
            },
            "url": "grpc://localhost:7051",
            "grpcOptions": {
                "ssl-target-name-override": "peer0.org1.example.com"
            }
        }
    }
}

该博客是一个古老的教程,可能是获取最新信息的官方文档的最佳来源:-乍一看,您可以检查您的容器是否位于同一网络
docker network inspect net_byfn | jq.[].Containers[].Name”|排序
或您的资源管理器容器是否可以解析byfn节点,例如
docker exec explorer.mynetwork.com ping-c 1 peer0.org1.example.com