首页 文章

在Hyperledger Fabric中创建和加入 Channels 构建您的第一个网络漫游

提问于
浏览
2

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

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

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返回现有的本地MSP 2017-07-27 16:49:58.949 UTC [msp] GetDefaultSigningIdentity - > DEBU 002获取默认签名身份2017-07 -27 16:49:58.954 UTC [grpc] Printf - > DEBU 003无法拨打orderer.example.com:7050:连接错误:desc =“transport:身份验证握手失败:x509:证书由未知权限签署(可能是因为“x509:ECDSA验证失败”,同时尝试验证候选权限证书\“tlsca.example.com \”)“;请重试 . 错误:由于rpc错误而连接错误:code =内部desc =连接错误:desc =“transport:身份验证握手失败:x509:由未知权限签署的证书(可能是因为”x509:ECDSA验证失败“,同时尝试验证候选机构证书\“tlsca.example.com \”)“用法:

谢谢 .

2 回答

  • 0

    您似乎在错误的工作目录中 . 手动运行示例时,启动cli容器并将其置于 /opt/gopath/src/github.com/hyperledger/fabric/peer 目录中 . 那是你应该运行 peer 命令的地方 . 从您的帖子看,您在容器的 /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com 目录中运行 peer 命令,并且找不到为该示例安装的配置文件 .

  • 0

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

    ./network_setup.sh down mychannel
    

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

相关问题