-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconnectionProfile.sh
executable file
·30 lines (27 loc) · 1.31 KB
/
connectionProfile.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
displayConnectionProfileOrg1(){
echo "peer 0"
cat ./artifacts/channel/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
echo "peer 1"
cat ./artifacts/channel/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/ca.crt
echo "ca"
cat ./artifacts/channel/crypto-config/peerOrganizations/org1.example.com/ca/ca.org1.example.com-cert.pem
}
displayConnectionProfileOrg2(){
echo "peer 0"
cat ./artifacts/channel/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt
echo "peer 1"
cat ./artifacts/channel/crypto-config/peerOrganizations/org2.example.com/peers/peer1.org2.example.com/tls/ca.crt
echo "ca"
cat ./artifacts/channel/crypto-config/peerOrganizations/org2.example.com/ca/ca.org2.example.com-cert.pem
}
displayConnectionProfileOrg3(){
echo "peer 0"
cat ./artifacts/channel/crypto-config/peerOrganizations/org3.example.com/peers/peer0.org3.example.com/tls/ca.crt
echo "peer 1"
cat ./artifacts/channel/crypto-config/peerOrganizations/org3.example.com/peers/peer1.org3.example.com/tls/ca.crt
echo "ca"
cat ./artifacts/channel/crypto-config/peerOrganizations/org3.example.com/ca/ca.org3.example.com-cert.pem
}
# displayConnectionProfileOrg1
# displayConnectionProfileOrg2
# displayConnectionProfileOrg3