fabirc

Fabric1.0をEC2上に構築する

EC2インスタンスを立ち上げる

今回は、無料枠で使えるインスタンスを使います。
OSはUbuntu、インスタンスタイプはt2.micro、そのほかはデフォルト。セキュリティグループではSSHを通すようにしておきます。

事前準備

https://hyperledger-fabric.readthedocs.io/en/latest/に書いてある通りなのですが、自分のコピペ用にメモ。

dockerをインストールする

VersionはDocker version 17.03.1-ce以上。
これもhttps://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#install-using-the-repositoryに書いてある通りだけどメモ。

$ sudo apt-get update
$ sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo apt-key fingerprint 0EBFCD88
$ sudo add-apt-repository    "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
$ sudo apt-get update
$ sudo apt-get install docker-ce
$ docker --version
Docker version 17.06.1-ce, build 874a737

sudoなしで使えるようにしておきます

$ sudo usermod -aG docker $USER

再ログインして動作確認します

$ docker run hello-world

docker-composeをインストールする

ここで最新版を確認してインストールします

$ sudo -s
$ curl -L https://github.com/docker/compose/releases/download/1.16.0-rc1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
$ chmod +x /usr/local/bin/docker-compose

go-langをインストールする

Versionは1.7.x

$ wget https://storage.googleapis.com/golang/go1.7.6.linux-amd64.tar.gz
$ sudo tar -C /usr/local -xzf go1.7.6.linux-amd64.tar.gz
# 環境変数を設定
$ sudo vi /etc/profile
# export PATH=$PATH:/usr/local/go/bin
$ go version

GOPATHを設定しておく

# 環境変数を設定
$ sudo vi /etc/profile
# export GOPATH=$HOME/go
# export PATH=$PATH:$GOPATH/bin

Fabricネットワークを起動してみる

https://hyperledger-fabric.readthedocs.io/en/latest/build_network.htmlの内容です。

設定ファイルなどの資材が入っているプロジェクトをcloneする

$ git clone https://github.com/hyperledger/fabric-samples.git

fabricのdockerイメージをダウンロードする

$ cd fabric-samples/
$ curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap-1.0.0.sh | bash

ダウンロードしたイメージはこちら。

===> List out hyperledger docker images
hyperledger/fabric-tools       latest              0403fd1c72c7        6 weeks ago         1.32GB
hyperledger/fabric-tools       x86_64-1.0.0        0403fd1c72c7        6 weeks ago         1.32GB
hyperledger/fabric-couchdb     latest              2fbdbf3ab945        6 weeks ago         1.48GB
hyperledger/fabric-couchdb     x86_64-1.0.0        2fbdbf3ab945        6 weeks ago         1.48GB
hyperledger/fabric-kafka       latest              dbd3f94de4b5        6 weeks ago         1.3GB
hyperledger/fabric-kafka       x86_64-1.0.0        dbd3f94de4b5        6 weeks ago         1.3GB
hyperledger/fabric-zookeeper   latest              e545dbf1c6af        6 weeks ago         1.31GB
hyperledger/fabric-zookeeper   x86_64-1.0.0        e545dbf1c6af        6 weeks ago         1.31GB
hyperledger/fabric-orderer     latest              e317ca5638ba        6 weeks ago         179MB
hyperledger/fabric-orderer     x86_64-1.0.0        e317ca5638ba        6 weeks ago         179MB
hyperledger/fabric-peer        latest              6830dcd7b9b5        6 weeks ago         182MB
hyperledger/fabric-peer        x86_64-1.0.0        6830dcd7b9b5        6 weeks ago         182MB
hyperledger/fabric-javaenv     latest              8948126f0935        6 weeks ago         1.42GB
hyperledger/fabric-javaenv     x86_64-1.0.0        8948126f0935        6 weeks ago         1.42GB
hyperledger/fabric-ccenv       latest              7182c260a5ca        6 weeks ago         1.29GB
hyperledger/fabric-ccenv       x86_64-1.0.0        7182c260a5ca        6 weeks ago         1.29GB
hyperledger/fabric-ca          latest              a15c59ecda5b        6 weeks ago         238MB
hyperledger/fabric-ca          x86_64-1.0.0        a15c59ecda5b        6 weeks ago         238MB

動作確認

$ cd ~/fabric-samples/first-network
$ ./byfn.sh -m generate
$ ./byfn.sh -m up
$ ./byfn.sh -m down

up の後次のようなログが出ればOK

Starting with channel 'mychannel' and CLI timeout of '10000'
Continue (y/n)? y
proceeding ...
Creating network "net_byfn" with the default driver
Creating peer1.org2.example.com ... 
Creating peer0.org1.example.com ... 
Creating peer1.org1.example.com ... 
Creating orderer.example.com ... 
Creating peer1.org2.example.com
Creating peer0.org2.example.com ... 
Creating peer0.org1.example.com
Creating peer1.org1.example.com
Creating peer0.org2.example.com
Creating orderer.example.com ... done
Creating cli ... 
Creating cli ... done

 ____    _____      _      ____    _____ 
/ ___|  |_   _|    / \    |  _ \  |_   _|
\___ \    | |     / _ \   | |_) |   | |  
 ___) |   | |    / ___ \  |  _ <    | |  
|____/    |_|   /_/   \_\ |_| \_\   |_|  

Build your first network (BYFN) end-to-end test

Channel name : mychannel
Creating channel...
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org1MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer0.org1.example.com:7051
2017-08-25 11:15:59.736 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2017-08-25 11:15:59.736 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2017-08-25 11:15:59.739 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
2017-08-25 11:15:59.740 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP
2017-08-25 11:15:59.740 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity
2017-08-25 11:15:59.740 UTC [msp] GetLocalMSP -> DEBU 006 Returning existing local MSP
2017-08-25 11:15:59.740 UTC [msp] GetDefaultSigningIdentity -> DEBU 007 Obtaining default signing identity
2017-08-25 11:15:59.740 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0A8C060A074F7267314D53501280062D...53616D706C65436F6E736F727469756D 
2017-08-25 11:15:59.740 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: 122100E31DBDFDF6144EDFD77C79D1824707A524F4412FFA5F61F5A57D67DD0D 
2017-08-25 11:15:59.740 UTC [msp] GetLocalMSP -> DEBU 00a Returning existing local MSP
2017-08-25 11:15:59.740 UTC [msp] GetDefaultSigningIdentity -> DEBU 00b Obtaining default signing identity
2017-08-25 11:15:59.740 UTC [msp] GetLocalMSP -> DEBU 00c Returning existing local MSP
2017-08-25 11:15:59.740 UTC [msp] GetDefaultSigningIdentity -> DEBU 00d Obtaining default signing identity
2017-08-25 11:15:59.740 UTC [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0AC3060A1508021A0608EF8D80CD0522...B4B34BA30566361206B6F4DC60AF8039 
2017-08-25 11:15:59.740 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: 1AD44DAB7B04213CCF8E8FE6F24B96FF29595B203090B7D7273B194F267DD785 
2017-08-25 11:15:59.818 UTC [msp] GetLocalMSP -> DEBU 010 Returning existing local MSP
2017-08-25 11:15:59.818 UTC [msp] GetDefaultSigningIdentity -> DEBU 011 Obtaining default signing identity
2017-08-25 11:15:59.818 UTC [msp] GetLocalMSP -> DEBU 012 Returning existing local MSP
2017-08-25 11:15:59.818 UTC [msp] GetDefaultSigningIdentity -> DEBU 013 Obtaining default signing identity
2017-08-25 11:15:59.818 UTC [msp/identity] Sign -> DEBU 014 Sign: plaintext: 0AC3060A1508021A0608EF8D80CD0522...A6F68543621212080A021A0012021A00 
2017-08-25 11:15:59.818 UTC [msp/identity] Sign -> DEBU 015 Sign: digest: 8EE81828D4330F4D48D739056D129C9ADF8615467959CC76C1C0692E76A8D5C6 
2017-08-25 11:15:59.833 UTC [channelCmd] readBlock -> DEBU 016 Got status:*orderer.DeliverResponse_Status 
2017-08-25 11:15:59.833 UTC [msp] GetLocalMSP -> DEBU 017 Returning existing local MSP
2017-08-25 11:15:59.833 UTC [msp] GetDefaultSigningIdentity -> DEBU 018 Obtaining default signing identity
2017-08-25 11:15:59.875 UTC [channelCmd] InitCmdFactory -> INFO 019 Endorser and orderer connections initialized
2017-08-25 11:16:00.075 UTC [msp] GetLocalMSP -> DEBU 01a Returning existing local MSP
2017-08-25 11:16:00.075 UTC [msp] GetDefaultSigningIdentity -> DEBU 01b Obtaining default signing identity
2017-08-25 11:16:00.075 UTC [msp] GetLocalMSP -> DEBU 01c Returning existing local MSP
2017-08-25 11:16:00.075 UTC [msp] GetDefaultSigningIdentity -> DEBU 01d Obtaining default signing identity
2017-08-25 11:16:00.075 UTC [msp/identity] Sign -> DEBU 01e Sign: plaintext: 0AC3060A1508021A0608F08D80CD0522...2EC52A93221912080A021A0012021A00 
2017-08-25 11:16:00.076 UTC [msp/identity] Sign -> DEBU 01f Sign: digest: A0A438ED0EF56525EB73EF75525D02FA820415E50AD6D318A60AD86CA3704E64 
2017-08-25 11:16:00.079 UTC [channelCmd] readBlock -> DEBU 020 Received block:0 
2017-08-25 11:16:00.079 UTC [main] main -> INFO 021 Exiting.....
===================== Channel "mychannel" is created successfully ===================== 

Having all peers join the channel...
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org1MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer0.org1.example.com:7051
2017-08-25 11:16:00.121 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2017-08-25 11:16:00.121 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2017-08-25 11:16:00.123 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
2017-08-25 11:16:00.124 UTC [msp/identity] Sign -> DEBU 004 Sign: plaintext: 0A89070A5B08011A0B08F08D80CD0510...06318FA5B3D31A080A000A000A000A00 
2017-08-25 11:16:00.124 UTC [msp/identity] Sign -> DEBU 005 Sign: digest: 6C20C6003D5CEAF70C99C065ACDBF3B1AF660F95FBE1866451988586CD58C522 
2017-08-25 11:16:00.173 UTC [channelCmd] executeJoin -> INFO 006 Peer joined the channel!
2017-08-25 11:16:00.173 UTC [main] main -> INFO 007 Exiting.....
===================== PEER0 joined on the channel "mychannel" ===================== 

CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org1MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer1.org1.example.com:7051
2017-08-25 11:16:02.215 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2017-08-25 11:16:02.215 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2017-08-25 11:16:02.218 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
2017-08-25 11:16:02.218 UTC [msp/identity] Sign -> DEBU 004 Sign: plaintext: 0A89070A5B08011A0B08F28D80CD0510...06318FA5B3D31A080A000A000A000A00 
2017-08-25 11:16:02.218 UTC [msp/identity] Sign -> DEBU 005 Sign: digest: 3E4A1FD25BA0D8625775DC9298E884E6A34A586036BBC20DC1837096B5EC151E 
2017-08-25 11:16:02.254 UTC [channelCmd] executeJoin -> INFO 006 Peer joined the channel!
2017-08-25 11:16:02.254 UTC [main] main -> INFO 007 Exiting.....
===================== PEER1 joined on the channel "mychannel" ===================== 

CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org2MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer0.org2.example.com:7051
2017-08-25 11:16:04.293 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2017-08-25 11:16:04.293 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2017-08-25 11:16:04.296 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
2017-08-25 11:16:04.296 UTC [msp/identity] Sign -> DEBU 004 Sign: plaintext: 0A8A070A5C08011A0C08F48D80CD0510...06318FA5B3D31A080A000A000A000A00 
2017-08-25 11:16:04.296 UTC [msp/identity] Sign -> DEBU 005 Sign: digest: 12A332233DAE5A6DA17BA1197DFA913F54B59ECC79E0769460FCE4B809B70081 
2017-08-25 11:16:04.335 UTC [channelCmd] executeJoin -> INFO 006 Peer joined the channel!
2017-08-25 11:16:04.335 UTC [main] main -> INFO 007 Exiting.....
===================== PEER2 joined on the channel "mychannel" ===================== 

CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org2MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer1.org2.example.com:7051
2017-08-25 11:16:06.374 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2017-08-25 11:16:06.374 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2017-08-25 11:16:06.377 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
2017-08-25 11:16:06.377 UTC [msp/identity] Sign -> DEBU 004 Sign: plaintext: 0A8A070A5C08011A0C08F68D80CD0510...06318FA5B3D31A080A000A000A000A00 
2017-08-25 11:16:06.377 UTC [msp/identity] Sign -> DEBU 005 Sign: digest: 61C989085E932381AB315B3DF917BAFC8196F63ED11B893662877FA15F778246 
2017-08-25 11:16:06.414 UTC [channelCmd] executeJoin -> INFO 006 Peer joined the channel!
2017-08-25 11:16:06.414 UTC [main] main -> INFO 007 Exiting.....
===================== PEER3 joined on the channel "mychannel" ===================== 

Updating anchor peers for org1...
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org1MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer0.org1.example.com:7051
2017-08-25 11:16:08.455 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2017-08-25 11:16:08.455 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2017-08-25 11:16:08.458 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
2017-08-25 11:16:08.459 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP
2017-08-25 11:16:08.459 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity
2017-08-25 11:16:08.459 UTC [msp] GetLocalMSP -> DEBU 006 Returning existing local MSP
2017-08-25 11:16:08.459 UTC [msp] GetDefaultSigningIdentity -> DEBU 007 Obtaining default signing identity
2017-08-25 11:16:08.459 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0A8C060A074F7267314D53501280062D...731200220B0A07526561646572731200 
2017-08-25 11:16:08.459 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: 350DAC6046D2E40273F3CD9DDFC13D62692DB57772426BD26DC19D81C45FB163 
2017-08-25 11:16:08.459 UTC [msp] GetLocalMSP -> DEBU 00a Returning existing local MSP
2017-08-25 11:16:08.459 UTC [msp] GetDefaultSigningIdentity -> DEBU 00b Obtaining default signing identity
2017-08-25 11:16:08.459 UTC [msp] GetLocalMSP -> DEBU 00c Returning existing local MSP
2017-08-25 11:16:08.459 UTC [msp] GetDefaultSigningIdentity -> DEBU 00d Obtaining default signing identity
2017-08-25 11:16:08.459 UTC [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0AC3060A1508021A0608F88D80CD0522...F73A52FF6466C75512A7E16039D95165 
2017-08-25 11:16:08.459 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: 5544A1C0D9A289B5D90FBBDE4F3F6A0CA26C3F9729E125A8907813F80AA02B49 
2017-08-25 11:16:08.485 UTC [main] main -> INFO 010 Exiting.....
===================== Anchor peers for org "Org1MSP" on "mychannel" is updated successfully ===================== 

Updating anchor peers for org2...
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org2MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer0.org2.example.com:7051
2017-08-25 11:16:08.572 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2017-08-25 11:16:08.572 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2017-08-25 11:16:08.580 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
2017-08-25 11:16:08.580 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP
2017-08-25 11:16:08.580 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity
2017-08-25 11:16:08.580 UTC [msp] GetLocalMSP -> DEBU 006 Returning existing local MSP
2017-08-25 11:16:08.580 UTC [msp] GetDefaultSigningIdentity -> DEBU 007 Obtaining default signing identity
2017-08-25 11:16:08.580 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0A8C060A074F7267324D53501280062D...72731200220A0A0641646D696E731200 
2017-08-25 11:16:08.580 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: EF09ED7B18C0E78DFCAEEEA96914948B1D081E48AEBC0251250DB8058FE034B3 
2017-08-25 11:16:08.583 UTC [msp] GetLocalMSP -> DEBU 00a Returning existing local MSP
2017-08-25 11:16:08.583 UTC [msp] GetDefaultSigningIdentity -> DEBU 00b Obtaining default signing identity
2017-08-25 11:16:08.584 UTC [msp] GetLocalMSP -> DEBU 00c Returning existing local MSP
2017-08-25 11:16:08.584 UTC [msp] GetDefaultSigningIdentity -> DEBU 00d Obtaining default signing identity
2017-08-25 11:16:08.584 UTC [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0AC3060A1508021A0608F88D80CD0522...CC8664CA23E052F56D96C164277081C7 
2017-08-25 11:16:08.584 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: C3CAE2521E23DEDF8B0F9470F3BD45AD6453D81230AD887C35C9DE0ED98FD01B 
2017-08-25 11:16:08.639 UTC [main] main -> INFO 010 Exiting.....
===================== Anchor peers for org "Org2MSP" on "mychannel" is updated successfully ===================== 

Installing chaincode on org1/peer0...
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org1MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer0.org1.example.com:7051
2017-08-25 11:16:08.774 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2017-08-25 11:16:08.774 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2017-08-25 11:16:08.774 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2017-08-25 11:16:08.774 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2017-08-25 11:16:09.016 UTC [golang-platform] getCodeFromFS -> DEBU 005 getCodeFromFS github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02
2017-08-25 11:16:09.371 UTC [golang-platform] func1 -> DEBU 006 Discarding GOROOT package fmt
2017-08-25 11:16:09.371 UTC [golang-platform] func1 -> DEBU 007 Discarding provided package github.com/hyperledger/fabric/core/chaincode/shim
2017-08-25 11:16:09.371 UTC [golang-platform] func1 -> DEBU 008 Discarding provided package github.com/hyperledger/fabric/protos/peer
2017-08-25 11:16:09.371 UTC [golang-platform] func1 -> DEBU 009 Discarding GOROOT package strconv
2017-08-25 11:16:09.371 UTC [golang-platform] GetDeploymentPayload -> DEBU 00a done
2017-08-25 11:16:09.373 UTC [msp/identity] Sign -> DEBU 00b Sign: plaintext: 0A8A070A5C08031A0C08F98D80CD0510...175DFF090000FFFF7C012598002C0000 
2017-08-25 11:16:09.373 UTC [msp/identity] Sign -> DEBU 00c Sign: digest: 4B320F900AE9090FDDB3BFA7C9B6DE121118519278B15632AFA47FFA7901544E 
2017-08-25 11:16:09.377 UTC [chaincodeCmd] install -> DEBU 00d Installed remotely response:<status:200 payload:"OK" > 
2017-08-25 11:16:09.377 UTC [main] main -> INFO 00e Exiting.....
===================== Chaincode is installed on remote peer PEER0 ===================== 

Install chaincode on org2/peer2...
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org2MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer0.org2.example.com:7051
2017-08-25 11:16:09.419 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2017-08-25 11:16:09.419 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2017-08-25 11:16:09.419 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2017-08-25 11:16:09.419 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2017-08-25 11:16:09.470 UTC [golang-platform] getCodeFromFS -> DEBU 005 getCodeFromFS github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02
2017-08-25 11:16:09.588 UTC [golang-platform] func1 -> DEBU 006 Discarding GOROOT package fmt
2017-08-25 11:16:09.588 UTC [golang-platform] func1 -> DEBU 007 Discarding provided package github.com/hyperledger/fabric/core/chaincode/shim
2017-08-25 11:16:09.588 UTC [golang-platform] func1 -> DEBU 008 Discarding provided package github.com/hyperledger/fabric/protos/peer
2017-08-25 11:16:09.588 UTC [golang-platform] func1 -> DEBU 009 Discarding GOROOT package strconv
2017-08-25 11:16:09.588 UTC [golang-platform] GetDeploymentPayload -> DEBU 00a done
2017-08-25 11:16:09.589 UTC [msp/identity] Sign -> DEBU 00b Sign: plaintext: 0A8A070A5C08031A0C08F98D80CD0510...175DFF090000FFFF7C012598002C0000 
2017-08-25 11:16:09.589 UTC [msp/identity] Sign -> DEBU 00c Sign: digest: 104457C02FCDC51B30A8AB71AF5E8107238D63E76B9622FE54590EBD3CA721F3 
2017-08-25 11:16:09.594 UTC [chaincodeCmd] install -> DEBU 00d Installed remotely response:<status:200 payload:"OK" > 
2017-08-25 11:16:09.594 UTC [main] main -> INFO 00e Exiting.....
===================== Chaincode is installed on remote peer PEER2 ===================== 

Instantiating chaincode on org2/peer2...
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org2MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer0.org2.example.com:7051
2017-08-25 11:16:09.634 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2017-08-25 11:16:09.634 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2017-08-25 11:16:09.637 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2017-08-25 11:16:09.637 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2017-08-25 11:16:09.638 UTC [msp/identity] Sign -> DEBU 005 Sign: plaintext: 0A95070A6708031A0C08F98D80CD0510...324D53500A04657363630A0476736363 
2017-08-25 11:16:09.638 UTC [msp/identity] Sign -> DEBU 006 Sign: digest: 2F6A917B08692932603E2C8124A1B39BF870049A6AE7801A803152E682E467EC 
2017-08-25 11:16:33.324 UTC [msp/identity] Sign -> DEBU 007 Sign: plaintext: 0A95070A6708031A0C08F98D80CD0510...EF951257B067BD2F8BCE4D4C5A1939A1 
2017-08-25 11:16:33.324 UTC [msp/identity] Sign -> DEBU 008 Sign: digest: 56D3CDB7AF91A2C2EA1DE344F5ADC6734517CF16C0B6446CE4C0FB336E9A9931 
2017-08-25 11:16:33.327 UTC [main] main -> INFO 009 Exiting.....
===================== Chaincode Instantiation on PEER2 on channel 'mychannel' is successful ===================== 

Querying chaincode on org1/peer0...
===================== Querying on PEER0 on channel 'mychannel'... ===================== 
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org1MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer0.org1.example.com:7051
Attempting to Query PEER0 ...3 secs

2017-08-25 11:16:36.408 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2017-08-25 11:16:36.408 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2017-08-25 11:16:36.408 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2017-08-25 11:16:36.408 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2017-08-25 11:16:36.409 UTC [msp/identity] Sign -> DEBU 005 Sign: plaintext: 0A95070A6708031A0C08948E80CD0510...6D7963631A0A0A0571756572790A0161 
2017-08-25 11:16:36.409 UTC [msp/identity] Sign -> DEBU 006 Sign: digest: 31B0BA3EA22C3E819D9C891FE6E2C4B2D3DC3144C7873423D9BF0B1A739632E0 
Query Result: 100
2017-08-25 11:16:56.624 UTC [main] main -> INFO 007 Exiting.....
===================== Query on PEER0 on channel 'mychannel' is successful ===================== 
Sending invoke transaction on org1/peer0...
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org1MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer0.org1.example.com:7051
2017-08-25 11:16:56.693 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2017-08-25 11:16:56.693 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2017-08-25 11:16:56.698 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2017-08-25 11:16:56.698 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2017-08-25 11:16:56.698 UTC [msp/identity] Sign -> DEBU 005 Sign: plaintext: 0A95070A6708031A0C08A88E80CD0510...696E766F6B650A01610A01620A023130 
2017-08-25 11:16:56.698 UTC [msp/identity] Sign -> DEBU 006 Sign: digest: 5C6EC9DC7733859ADFE0399690D5051BF04E3BD14D4BA598ECF7BFAA1BE56CDF 
2017-08-25 11:16:56.709 UTC [msp/identity] Sign -> DEBU 007 Sign: plaintext: 0A95070A6708031A0C08A88E80CD0510...841DA36792D05E5181EA6E9D2A51DDAD 
2017-08-25 11:16:56.709 UTC [msp/identity] Sign -> DEBU 008 Sign: digest: 40F5A44265637C28F0350CEFBA54940CB2D2962683D292EB5AD9F9F483F6CE0D 
2017-08-25 11:16:56.712 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> DEBU 009 ESCC invoke result: version:1 response:<status:200 message:"OK" > payload:"\n \226\377\r\230\367\216U\357\t\353K:k\245\322\367\373\021\252\275\\\332!\206\316\r\240\221\014\\\206\362\022Y\nE\022\024\n\004lscc\022\014\n\n\n\004mycc\022\002\010\003\022-\n\004mycc\022%\n\007\n\001a\022\002\010\003\n\007\n\001b\022\002\010\003\032\007\n\001a\032\00290\032\010\n\001b\032\003210\032\003\010\310\001\"\013\022\004mycc\032\0031.0" endorsement:<endorser:"\n\007Org1MSP\022\200\006-----BEGIN -----\nMIICGTCCAb+gAwIBAgIQL7+uVgAAVrqOivStJ+PgnzAKBggqhkjOPQQDAjBzMQsw\nCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy\nYW5jaXNjbzEZMBcGA1UEChMQb3JnMS5leGFtcGxlLmNvbTEcMBoGA1UEAxMTY2Eu\nb3JnMS5leGFtcGxlLmNvbTAeFw0xNzA4MjUxMTE1MDFaFw0yNzA4MjMxMTE1MDFa\nMFsxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1T\nYW4gRnJhbmNpc2NvMR8wHQYDVQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkw\nEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEW6aaa3JkIR+hGOQYMYnbZZCQTrX7YwZN\ngRxndm0hrcTTX+Fk2sXgfmDHEnGOKg1/oUmWnCK/VAqvZSSdiRn/q6NNMEswDgYD\nVR0PAQH/BAQDAgeAMAwGA1UdEwEB/wQCMAAwKwYDVR0jBCQwIoAgGrfjOFbad1nE\nQP4ARgxMd+jVhlxVuKac+hv5ulW4j3MwCgYIKoZIzj0EAwIDSAAwRQIhAJRI2atG\nGHJbJ1Nwaqh1cVFy/nfrqDhUpr9ZplVjH6IGAiAfHeHnoxO91UDOyxIycm8JVJW0\nuHRi83lEOSEuCsSyQA==\n-----END -----\n" signature:"0D\002 *\005$d{\227) V\003qg\006\374\365\350\373\231i\302\241\201\305\333M\306\276W\301+\231\r\002 &\370\205F\230\333Q\274\214f<[\200f\257\247\204\035\243g\222\320^Q\201\352n\235*Q\335\255" > 
2017-08-25 11:16:56.712 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> INFO 00a Chaincode invoke successful. result: status:200 
2017-08-25 11:16:56.712 UTC [main] main -> INFO 00b Exiting.....
===================== Invoke transaction on PEER0 on channel 'mychannel' is successful ===================== 

Installing chaincode on org2/peer3...
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org2MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer1.org2.example.com:7051
2017-08-25 11:16:56.762 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2017-08-25 11:16:56.762 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2017-08-25 11:16:56.762 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2017-08-25 11:16:56.762 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2017-08-25 11:16:56.865 UTC [golang-platform] getCodeFromFS -> DEBU 005 getCodeFromFS github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02
2017-08-25 11:16:56.989 UTC [golang-platform] func1 -> DEBU 006 Discarding GOROOT package fmt
2017-08-25 11:16:56.989 UTC [golang-platform] func1 -> DEBU 007 Discarding provided package github.com/hyperledger/fabric/core/chaincode/shim
2017-08-25 11:16:56.989 UTC [golang-platform] func1 -> DEBU 008 Discarding provided package github.com/hyperledger/fabric/protos/peer
2017-08-25 11:16:56.989 UTC [golang-platform] func1 -> DEBU 009 Discarding GOROOT package strconv
2017-08-25 11:16:56.989 UTC [golang-platform] GetDeploymentPayload -> DEBU 00a done
2017-08-25 11:16:56.990 UTC [msp/identity] Sign -> DEBU 00b Sign: plaintext: 0A8A070A5C08031A0C08A88E80CD0510...175DFF090000FFFF7C012598002C0000 
2017-08-25 11:16:56.990 UTC [msp/identity] Sign -> DEBU 00c Sign: digest: 41658CE786309DFD519D9D8733DBC1118C63A15C15F9736DF1AC957B1DA2DAA4 
2017-08-25 11:16:56.995 UTC [chaincodeCmd] install -> DEBU 00d Installed remotely response:<status:200 payload:"OK" > 
2017-08-25 11:16:56.995 UTC [main] main -> INFO 00e Exiting.....
===================== Chaincode is installed on remote peer PEER3 ===================== 

Querying chaincode on org2/peer3...
===================== Querying on PEER3 on channel 'mychannel'... ===================== 
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org2MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer1.org2.example.com:7051
Attempting to Query PEER3 ...3 secs

2017-08-25 11:17:00.040 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2017-08-25 11:17:00.040 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2017-08-25 11:17:00.040 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2017-08-25 11:17:00.040 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2017-08-25 11:17:00.041 UTC [msp/identity] Sign -> DEBU 005 Sign: plaintext: 0A94070A6608031A0B08AC8E80CD0510...6D7963631A0A0A0571756572790A0161 
2017-08-25 11:17:00.041 UTC [msp/identity] Sign -> DEBU 006 Sign: digest: 83368EC092ECBB33962DBE5EE1B842EA09CB52ECECC1549F514EA0C574A4CFCC 
Query Result: 90
2017-08-25 11:17:20.269 UTC [main] main -> INFO 007 Exiting.....
===================== Query on PEER3 on channel 'mychannel' is successful ===================== 

========= All GOOD, BYFN execution completed =========== 


 _____   _   _   ____   
| ____| | \ | | |  _ \  
|  _|   |  \| | | | | | 
| |___  | |\  | | |_| | 
|_____| |_| \_| |____/  

このなかで何をやっているのかはまた別の記事で!