2017-07-27 3 views
2

を通して、あなたの最初のネットワークウォークを構築した証明書に問題があるHyperledgerファブリック内のチャネルに参加します。ドッカーの "hyperledger/fabric-tools"ノードでは、現在の名前であるtlsca.example.comの証明書を見つけることができます。しかし、チャンネルを作成することはできません。証明書の手ぶれの問題があります。証明書をピアノードにチェック/マウントする必要がありますか?作成&Iは、ドキュメント</p> <p><a href="http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html?highlight=create%20channel" rel="nofollow noreferrer">Hyperledger Fabric v1.0 docs</a> に応じてチャンネルを作成しようとしています

[email protected]:/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:

感謝。

+0

達成しようとしているステップが何であるかはあまり明確ではありません。あなたの質問にもう少し詳しく説明してください。あなたのセットアップは何ですか、あなたは何をしましたか?より多くの詳細、より多くのチャンスの人々があなたを助けることができます。 –

+0

簡単な例を実行したい 1.ピアを作成して注文する 2.その間に新しいチャンネルを作成する 3. Java SDKと接続する – scala

+0

同じエラーが発生していますが、ピアディレクトリにいます。 – Flea

答えて

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

私はボリュームに正しいパスをマウントし、 "作業ディレクトリ"として正しいディレクトリを設定すると思っても、私は同じ問題に直面しています。あなたは@ christo4ferrisを考えている? –

+0

不明確ですが、コンテナにexecを実行すると、$ PWDの値は何ですか? – christo4ferris

+0

/opt/gopath/src/github.com/hyperledger/fabricはpwd –

関連する問題

 関連する問題