作曲者身份请求错误

时间:2018-08-17 03:43:23

标签: identity hyperledger-composer

我遇到了一个错误

composer identity request -c PeerAdmin@byfn-network-org1 -u admin -s adminpw -d alice

错误:无法请求身份。尝试注册用户并返回证书时出错。错误:呼叫注册端点失败,并显示错误[错误:连接ETIMEDOUT 192.168.1.159:7054] 命令失败

我正在使用以下

超级账本面料1.2 作曲家v0.20

我的ca容器的ip地址是172.19.0.4 那么为什么错误提示为错误:连接ETIMEDOUT 192.168.1.159:7054]

我已经验证(并验证)所有对等方的所有ca证书和tls证书已正确复制到byfn-network-org1.json中。 另外,在docker-composer-cli.yaml中启用了TLS

这是连接配置文件的副本。

cat ./org1/*json

{
"name": "byfn-network",
"x-type": "hlfv1",
"version": "1.0.0",
"client": {
"organization": "Org1",
"connection": {
"timeout": {
"peer": {
"endorser": "1200",
"eventHub": "1200",
"eventReg": "1200"
},
"orderer": "1200"
}
}
},
"channels": {
"mychannel": {
"orderers": [
"orderer.example.com"
],
"peers": {
"peer0.org1.example.com": {
"endorsingPeer": true,
"chaincodeQuery": true,
"eventSource": true
},
"peer1.org1.example.com": {
"endorsingPeer": true,
"chaincodeQuery": true,
"eventSource": true
},
"peer0.org2.example.com": {
"endorsingPeer": true,
"chaincodeQuery": true,
"eventSource": true
},
"peer1.org2.example.com": {
"endorsingPeer": true,
"chaincodeQuery": true,
"eventSource": true
}
}
}
},
"organizations": {
"Org1": {
"mspid": "Org1MSP",
"peers": [
"peer0.org1.example.com",
"peer1.org1.example.com"
],
"certificateAuthorities": [
"ca.org1.example.com"
]
},
"Org2": {
"mspid": "Org2MSP",
"peers": [
"peer0.org2.example.com",
"peer1.org2.example.com"
],
"certificateAuthorities": [
"ca.org2.example.com"
]
}
},
"orderers": {
"orderer.example.com": {
"url": "grpcs://localhost:7050",
"grpcOptions": {
"ssl-target-name-override": "orderer.example.com"
},
"tlsCACerts": {
"pem": "-----BEGIN CERTIFICATE-----\nMIICNjCCAdygAwIBAgIRAObpbDwgoENq9ae9xt2Y7iMwCgYIKoZIzj0EAwIwbDEL\nMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG\ncmFuY2lzY28xFDASBgNVBAoTC2V4YW1wbGUuY29tMRowGAYDVQQDExF0bHNjYS5l\neGFtcGxlLmNvbTAeFw0xODA4MTYwMTI3MTRaFw0yODA4MTMwMTI3MTRaMGwxCzAJ\nBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJh\nbmNpc2NvMRQwEgYDVQQKEwtleGFtcGxlLmNvbTEaMBgGA1UEAxMRdGxzY2EuZXhh\nbXBsZS5jb20wWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQVSKzVu9jhELWQ83zU\nR2FoiYvVDfIPtoFRgWkwe08DTYH8hbav5IQm2BW9cKpZ681weJCvY40TVO/gwk7H\nk64ho18wXTAOBgNVHQ8BAf8EBAMCAaYwDwYDVR0lBAgwBgYEVR0lADAPBgNVHRMB\nAf8EBTADAQH/MCkGA1UdDgQiBCB4ezOoLazLorKZVaP13YOZtzxObPgXiPkQElmG\nsuJZWDAKBggqhkjOPQQDAgNIADBFAiEArtkBLDF23yKQ+uiC3dPQr3AQjyLDCXn6\nKmGQpnt/S8cCIBj0tQUH6eC4A9O9ESq2bg+z2aTz3KIU8iekQVJVw+gK\n-----END CERTIFICATE-----\n"
}
}
},
"peers": {
"peer0.org1.example.com": {
"url": "grpcs://localhost.com:7051",
"grpcOptions": {
"ssl-target-name-override": "peer0.org1.example.com"
},
"tlsCACerts": {
"pem": "-----BEGIN CERTIFICATE-----\nMIICSjCCAfCgAwIBAgIRAJXaYLgBAwxVBW9CaV+CgyMwCgYIKoZIzj0EAwIwdjEL\nMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG\ncmFuY2lzY28xGTAXBgNVBAoTEG9yZzEuZXhhbXBsZS5jb20xHzAdBgNVBAMTFnRs\nc2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTgwODE2MDEyNzE0WhcNMjgwODEzMDEy\nNzE0WjB2MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UE\nBxMNU2FuIEZyYW5jaXNjbzEZMBcGA1UEChMQb3JnMS5leGFtcGxlLmNvbTEfMB0G\nA1UEAxMWdGxzY2Eub3JnMS5leGFtcGxlLmNvbTBZMBMGByqGSM49AgEGCCqGSM49\nAwEHA0IABJVVanFTaisufMlNtKJt/hcvFE2aB+3gY0P+3HX+1ePIlbmwh9P4pDhN\ndc+mX7g//gKVV+R7NQnDVdn4mdEasX6jXzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNV\nHSUECDAGBgRVHSUAMA8GA1UdEwEB/wQFMAMBAf8wKQYDVR0OBCIEINdm7BDMYTV9\nRWcVHpgv7ghZ7OWj20Mes6Lie+himHw0MAoGCCqGSM49BAMCA0gAMEUCIQDXf1nh\nIvTzP+qwFnHa8iRvJz72NR8hO0FEKjf78yovYgIgerLVhjW5ayyFy4alXUrGL+oO\n5UrDMBF6mWjEpLHiP3k=\n-----END CERTIFICATE-----\n"
}
},
"peer1.org1.example.com": {
"url": "grpcs://peer1.org1.example.com:8051",
"grpcOptions": {
"ssl-target-name-override": "peer1.org1.example.com"
},
"tlsCACerts": {
"pem": "-----BEGIN CERTIFICATE-----\nMIICSjCCAfCgAwIBAgIRAJXaYLgBAwxVBW9CaV+CgyMwCgYIKoZIzj0EAwIwdjEL\nMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG\ncmFuY2lzY28xGTAXBgNVBAoTEG9yZzEuZXhhbXBsZS5jb20xHzAdBgNVBAMTFnRs\nc2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTgwODE2MDEyNzE0WhcNMjgwODEzMDEy\nNzE0WjB2MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UE\nBxMNU2FuIEZyYW5jaXNjbzEZMBcGA1UEChMQb3JnMS5leGFtcGxlLmNvbTEfMB0G\nA1UEAxMWdGxzY2Eub3JnMS5leGFtcGxlLmNvbTBZMBMGByqGSM49AgEGCCqGSM49\nAwEHA0IABJVVanFTaisufMlNtKJt/hcvFE2aB+3gY0P+3HX+1ePIlbmwh9P4pDhN\ndc+mX7g//gKVV+R7NQnDVdn4mdEasX6jXzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNV\nHSUECDAGBgRVHSUAMA8GA1UdEwEB/wQFMAMBAf8wKQYDVR0OBCIEINdm7BDMYTV9\nRWcVHpgv7ghZ7OWj20Mes6Lie+himHw0MAoGCCqGSM49BAMCA0gAMEUCIQDXf1nh\nIvTzP+qwFnHa8iRvJz72NR8hO0FEKjf78yovYgIgerLVhjW5ayyFy4alXUrGL+oO\n5UrDMBF6mWjEpLHiP3k=\n-----END CERTIFICATE-----\n"
}
},
"peer0.org2.example.com": {
"url": "grpcs://localhost.com:9051",
"grpcOptions": {
"ssl-target-name-override": "peer0.org2.example.com"
},
"tlsCACerts": {
"pem": "-----BEGIN CERTIFICATE-----\nMIICSjCCAfCgAwIBAgIRAMZ3rMvIJP+ebMYvxTsrqEswCgYIKoZIzj0EAwIwdjEL\nMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG\ncmFuY2lzY28xGTAXBgNVBAoTEG9yZzIuZXhhbXBsZS5jb20xHzAdBgNVBAMTFnRs\nc2NhLm9yZzIuZXhhbXBsZS5jb20wHhcNMTgwODE2MDEyNzE0WhcNMjgwODEzMDEy\nNzE0WjB2MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UE\nBxMNU2FuIEZyYW5jaXNjbzEZMBcGA1UEChMQb3JnMi5leGFtcGxlLmNvbTEfMB0G\nA1UEAxMWdGxzY2Eub3JnMi5leGFtcGxlLmNvbTBZMBMGByqGSM49AgEGCCqGSM49\nAwEHA0IABD9NNQrngFbpYV7CqOMk1yDcVqo5wl4XBiSQ9vVCEcFa5kTRUYX5zJcb\nsp9o0CCyDHOyY3aq9RDUnwyP+0W00qCjXzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNV\nHSUECDAGBgRVHSUAMA8GA1UdEwEB/wQFMAMBAf8wKQYDVR0OBCIEIGqaM0oY+4bk\nMAyHivCN12AAq/52PnpO4cUvQCSSy1XZMAoGCCqGSM49BAMCA0gAMEUCIQCsMWyw\nz/k9prAf043Kv/de0/avLm7EXvNDx1kaXQc9CwIgYuuCxvz8z1BdV7Ib/+knTcnX\n9qkKVLGC/L/opKL/mYM=\n-----END CERTIFICATE-----\n"
}
},
"peer1.org2.example.com": {
"url": "grpcs://localhost.com:10051",
"grpcOptions": {
"ssl-target-name-override": "peer1.org2.example.com"
},
"tlsCACerts": {
"pem": "-----BEGIN CERTIFICATE-----\nMIICSjCCAfCgAwIBAgIRAMZ3rMvIJP+ebMYvxTsrqEswCgYIKoZIzj0EAwIwdjEL\nMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG\ncmFuY2lzY28xGTAXBgNVBAoTEG9yZzIuZXhhbXBsZS5jb20xHzAdBgNVBAMTFnRs\nc2NhLm9yZzIuZXhhbXBsZS5jb20wHhcNMTgwODE2MDEyNzE0WhcNMjgwODEzMDEy\nNzE0WjB2MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UE\nBxMNU2FuIEZyYW5jaXNjbzEZMBcGA1UEChMQb3JnMi5leGFtcGxlLmNvbTEfMB0G\nA1UEAxMWdGxzY2Eub3JnMi5leGFtcGxlLmNvbTBZMBMGByqGSM49AgEGCCqGSM49\nAwEHA0IABD9NNQrngFbpYV7CqOMk1yDcVqo5wl4XBiSQ9vVCEcFa5kTRUYX5zJcb\nsp9o0CCyDHOyY3aq9RDUnwyP+0W00qCjXzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNV\nHSUECDAGBgRVHSUAMA8GA1UdEwEB/wQFMAMBAf8wKQYDVR0OBCIEIGqaM0oY+4bk\nMAyHivCN12AAq/52PnpO4cUvQCSSy1XZMAoGCCqGSM49BAMCA0gAMEUCIQCsMWyw\nz/k9prAf043Kv/de0/avLm7EXvNDx1kaXQc9CwIgYuuCxvz8z1BdV7Ib/+knTcnX\n9qkKVLGC/L/opKL/mYM=\n-----END CERTIFICATE-----\n"
}
}
},
"certificateAuthorities": {
"ca.org1.example.com": {
"url": "https://localhost:7054",
"caName": "ca-org1"
},
"ca.org2.example.com": {
"url": "https://localhost:8054",
"caName": "ca-org2"
}
}
}

0 个答案:

没有答案