创build和join频道

我正在尝试根据文档创build一个频道

Hyperledger Fabric v1.0文档与证书有关的问题。 在docker“hyperledger / fabric-tools”节点上,我可以find当前名称为tlsca.example.com证书。 但频道不能创build。 我有证书握手问题。 我应该检查/挂载证书到对等节点吗?

 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 =“传输:身份validation握手失败:x509:由未知权威签名证书(可能是因为\ )“;”x509:ECDSAvalidation失败“,同时试图validation候选权威证书”tlsca.example.com“); 请重试。 错误:由于rpc错误而连接错误:代码=内部desc =连接错误:desc =“传输:身份validation握手失败:x509:由未知权威签名的证书(可能是因为”x509:ECDSAvalidation失败“候选权威证书\“tlsca.example.com \”)“用法:

谢谢。

这似乎是你在不正确的工作目录。 手动运行样本时,启动cli容器,并将其放置在/opt/gopath/src/github.com/hyperledger/fabric/peer目录中。 这就是你应该运行peer命令的地方。 从您的post看来,您正在容器中的/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com目录中运行peer命令,但未find为示例安装的configuration文件。