gpt4 book ai didi

docker - 在 Hyperledger Fabric 中创建并加入 channel 构建您的第一个网络演练

转载 作者:行者123 更新时间:2023-12-02 18:40:00 25 4
gpt4 key购买 nike

我正在尝试根据文档创建一个 channel

Hyperledger Fabric v1.0 docs证书有问题。在 docker“hyperledger/fabric-tools”节点上,我可以找到具有当前名称的证书 - tlsca.example.com。但是无法创建 channel 。我有证书握手问题。我应该检查/安装证书到对等节点吗?

root@4b6423da537b:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com# peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

2017-07-27 16:49:58.949 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-07-27 16:49:58.949 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-07-27 16:49:58.954 UTC [grpc] Printf -> DEBU 003 Failed to dial orderer.example.com:7050: connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority (possibly because of \"x509: ECDSA verification failure\" while trying to verify candidate authority certificate \"tlsca.example.com\")"; please retry. Error: Error connecting due to rpc error: code = Internal desc = connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority (possibly because of \"x509: ECDSA verification failure\" while trying to verify candidate authority certificate \"tlsca.example.com\")" Usage:

谢谢。

最佳答案

我遇到了同样的问题。并运行此命令关闭网络。

./network_setup.sh down mychannel

导致我的问题的原因是源代码存在错误。所以我修改这个代码错误并重新打开网络。这个问题解决了。

关于docker - 在 Hyperledger Fabric 中创建并加入 channel 构建您的第一个网络演练,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45356893/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com