Error endorsing query: rpc error: code = Unknown desc = access denied: channel [mychannel] creator org [Org1MSP] - <nil>


(Saeedi) #21

Thanks a lot let me try


(Varun Raj) #22

And adding the link for reference.


(Saeedi) #23

Does this looks right ?

“certificateAuthorities”: {
ca.org1.example.com”: {
“url”: “https://localhost:7054”,
“caName”: “ca-org1”,
“httpOptions”: {
“verify”: false
},
“tlsCACerts”:{
“path”: “crypto-config/peerOrganizations/org1.example.com/ca/ca.org1.example.com-cert.pem”
},
“registrar”:{
“enrollId”:“admin”,
“enrollSecret”:“adminpw”
}
},
ca.org2.example.com”: {
“url”: “https://192.168.11.132:8054”,
“caName”: “ca-org2”,
“httpOptions”: {
“verify”: false
},
“tlsCACerts”:{
“path”: “crypto-config/peerOrganizations/org2.example.com/ca/ca.org2.example.com-cert.pem”
},
“registrar”:{
“enrollId”:“admin”,
“enrollSecret”:“adminpw”
}
}
}


(Saeedi) #24

Now i am having trouble while installing bna file

composer network install --card PeerAdmin@byfn-network-org1 --archiveFile trade-network.bna
:heavy_multiplication_x: Installing business network. This may take a minute…
Error: Error trying install business network. Error: No valid responses from any peers.
Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: EOF
Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: EOF
Command failed


(Varun Raj) #25

Change your peer config from grpc to grpcs. I think now the CA is fixed


(Saeedi) #26

Now the error is changed

lubuntu@lpeer1:~$ composer network install --card PeerAdmin@byfn-network-org1 --archiveFile trade-network.bna
:heavy_multiplication_x: Installing business network. This may take a minute…
Error: Error trying install business network. Error: No valid responses from any peers.
Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: Connect Failed
Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: Connect Failed
Command failed

lubuntu@lpeer1:~$ docker service ls
ID NAME MODE REPLICAS IMAGE PORTS
xzskkep0kirr hlf_kafka_kafka0 replicated 1/1 hyperledger/fabric-kafka:latest
o8z9b13e8gh6 hlf_kafka_kafka1 replicated 1/1 hyperledger/fabric-kafka:latest
mntjkv973t3k hlf_kafka_kafka2 replicated 1/1 hyperledger/fabric-kafka:latest
sgaiwwzv3k3j hlf_kafka_kafka3 replicated 1/1 hyperledger/fabric-kafka:latest
idtvaojs8sj1 hlf_orderer_orderer_org1 replicated 1/1 hyperledger/fabric-orderer:x86_64-1.1.0 *:7050->7050/tcp
7cyxhcrrrohg hlf_orderer_orderer_org2 replicated 1/1 hyperledger/fabric-orderer:x86_64-1.1.0 *:8050->7050/tcp
5x151t1bsb2s hlf_peer_peer0_org1 replicated 1/1 hyperledger/fabric-peer:x86_64-1.1.0 *:7051->7051/tcp, *:7053->7053/tcp
o6t63azif08f hlf_peer_peer0_org2 replicated 1/1 hyperledger/fabric-peer:x86_64-1.1.0 *:9051->7051/tcp, *:9053->7053/tcp
7r4ewrvl5gm0 hlf_peer_peer1_org1 replicated 1/1 hyperledger/fabric-peer:x86_64-1.1.0 *:8051->7051/tcp, *:8053->7053/tcp
yv79r25qffby hlf_peer_peer1_org2 replicated 1/1 hyperledger/fabric-peer:x86_64-1.1.0 *:10051->7051/tcp, *:10053->7053/tcp
kumvtxpu7klw hlf_services_ca_org1 replicated 1/1 hyperledger/fabric-ca:x86_64-1.1.0 *:7054->7054/tcp
vz22d18bm0ae hlf_services_ca_org2 replicated 1/1 hyperledger/fabric-ca:x86_64-1.1.0 *:8054->7054/tcp
akaq68tdha08 hlf_services_cli replicated 1/1 hyperledger/fabric-tools:x86_64-1.1.0
m87tqg681yok hlf_zk_zookeeper0 replicated 1/1 hyperledger/fabric-zookeeper:latest
6ljb44wdxt4o hlf_zk_zookeeper1 replicated 1/1 hyperledger/fabric-zookeeper:latest
zgxkklb4hq1y hlf_zk_zookeeper2 replicated 1/1 hyperledger/fabric-zookeeper:latest

{
“name”: “saeedi”,
“x-type”: “hlfv1”,
“version”: “1.0.0”,
“client”: {
“organization”: “Org1”,
“connection”: {
“timeout”: {
“peer”: {
“endorser”: “300”,
“eventHub”: “300”,
“eventReg”: “300”
},
“orderer”: “300”
}
}
},
“channels”: {
“mychannel”: {
“orderers”: [
orderer0.example.com”,
orderer1.example.com
],
“peers”: {
peer0.org1.example.com”: {
“endorsingPeer”: true,
“chaincodeQuery”: true,
“eventSource”: true
},
peer1.org1.example.com”: {
“endorsingPeer”: true,
“chaincodeQuery”: true,
“eventSource”: true
},
peer0.org2.example.com”: {
“endorsingPeer”: true,
“chaincodeQuery”: true,
“eventSource”: true
},
peer1.org2.example.com”: {
“endorsingPeer”: true,
“chaincodeQuery”: true,
“eventSource”: true
}
}
}
},
“organizations”: {
“Org1”: {
“mspid”: “Org1MSP”,
“peers”: [
peer0.org1.example.com”,
peer1.org1.example.com
],
“certificateAuthorities”: [
ca.org1.example.com
]
},
“Org2”: {
“mspid”: “Org2MSP”,
“peers”: [
peer0.org2.example.com”,
peer1.org2.example.com
],
“certificateAuthorities”: [
ca.org2.example.com
]
}
},
“orderers”: {
orderer0.example.com”: {
“url”: “grpcs://localhost:7050”,
“grpcsOptions”: {
“ssl-target-name-override”: “orderer0.example.com
},
“tlsCACerts”: {
“pem”: “-----BEGIN CERTIFICATE-----\nMIICNTCCAdugAwIBAgIQfwZ7nL098nQ6lprLT2x6CTAKBggqhkjOPQQDAjBsMQsw\nCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy\nYW5jaXNjbzEUMBIGA1UEChMLZXhhbXBsZS5jb20xGjAYBgNVBAMTEXRsc2NhLmV4\nYW1wbGUuY29tMB4XDTE4MDgyMzEzMjkyM1oXDTI4MDgyMDEzMjkyM1owbDELMAkG\nA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBGcmFu\nY2lzY28xFDASBgNVBAoTC2V4YW1wbGUuY29tMRowGAYDVQQDExF0bHNjYS5leGFt\ncGxlLmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABJvbPUbwFxFmQiMrg2so\nwuXj8Ia888TzVtVeujRDD1r5l6+B3RSqwZSl23WOQZURp/MUoeZ48imsQsw2mEZV\nAsmjXzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNVHSUECDAGBgRVHSUAMA8GA1UdEwEB\n/wQFMAMBAf8wKQYDVR0OBCIEIFuNvpLd5RH0p0q8jx8LT4qEfzZp7tdO0UNBYDz3\nGnovMAoGCCqGSM49BAMCA0gAMEUCIQDHLHYzcWzLLhmmAVzUZA4fOnNLhit8z14p\nLmTBhfeS4AIgWqMRTOi8wDXMtC9/CdnC1lOliJKswfP0/Ai2+UCozPY=\n-----END CERTIFICATE-----\n”
}
},
orderer1.example.com”: {
“url”: “grpcs://192.168.11.132:7050”,
“grpcsOptions”: {
“ssl-target-name-override”: “orderer1.example.com
},
“tlsCACerts”: {
“pem”: “-----BEGIN CERTIFICATE-----\nMIICNTCCAdugAwIBAgIQfwZ7nL098nQ6lprLT2x6CTAKBggqhkjOPQQDAjBsMQsw\nCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy\nYW5jaXNjbzEUMBIGA1UEChMLZXhhbXBsZS5jb20xGjAYBgNVBAMTEXRsc2NhLmV4\nYW1wbGUuY29tMB4XDTE4MDgyMzEzMjkyM1oXDTI4MDgyMDEzMjkyM1owbDELMAkG\nA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBGcmFu\nY2lzY28xFDASBgNVBAoTC2V4YW1wbGUuY29tMRowGAYDVQQDExF0bHNjYS5leGFt\ncGxlLmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABJvbPUbwFxFmQiMrg2so\nwuXj8Ia888TzVtVeujRDD1r5l6+B3RSqwZSl23WOQZURp/MUoeZ48imsQsw2mEZV\nAsmjXzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNVHSUECDAGBgRVHSUAMA8GA1UdEwEB\n/wQFMAMBAf8wKQYDVR0OBCIEIFuNvpLd5RH0p0q8jx8LT4qEfzZp7tdO0UNBYDz3\nGnovMAoGCCqGSM49BAMCA0gAMEUCIQDHLHYzcWzLLhmmAVzUZA4fOnNLhit8z14p\nLmTBhfeS4AIgWqMRTOi8wDXMtC9/CdnC1lOliJKswfP0/Ai2+UCozPY=\n-----END CERTIFICATE-----\n”
}
}
},
“peers”: {
peer0.org1.example.com”: {
“url”: “grpcs://localhost:7051”,
“grpcsOptions”: {
“ssl-target-name-override”: “peer0.org1.example.com
},
“tlsCACerts”: {
“pem”: “-----BEGIN CERTIFICATE-----\nMIICSTCCAe+gAwIBAgIQa/OwKRdbRy9EKOY/FWbLzDAKBggqhkjOPQQDAjB2MQsw\nCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy\nYW5jaXNjbzEZMBcGA1UEChMQb3JnMS5leGFtcGxlLmNvbTEfMB0GA1UEAxMWdGxz\nY2Eub3JnMS5leGFtcGxlLmNvbTAeFw0xODA4MjMxMzI5MjJaFw0yODA4MjAxMzI5\nMjJaMHYxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQH\nEw1TYW4gRnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMR8wHQYD\nVQQDExZ0bHNjYS5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D\nAQcDQgAEKl+kVSFHk1sEC3bgxzKf/PdtP30Vxr3mSGggWp35rOoDpLSuPoZ5WOoH\nAodWzEQByX+E/Os6A0ERLP5VKqUZC6NfMF0wDgYDVR0PAQH/BAQDAgGmMA8GA1Ud\nJQQIMAYGBFUdJQAwDwYDVR0TAQH/BAUwAwEB/zApBgNVHQ4EIgQgbkru/Jd2Z+Zi\nON0tgdQQVcKknBXBbahVI1JlSKi5NTwwCgYIKoZIzj0EAwIDSAAwRQIhAOF/YszG\nGlbllTSfccFp6hwjyjk4yiQ0gP1dsF1q0SfHAiAvtnnQBOspIl7AO+O0OPuZ6+Es\nENBQMvBfHQvUlKv8xQ==\n-----END CERTIFICATE-----\n”
}
},
peer1.org1.example.com”: {
“url”: “grpcs://localhost:8051”,
“grpcsOptions”: {
“ssl-target-name-override”: “peer1.org1.example.com
},
“tlsCACerts”: {
“pem”: “-----BEGIN CERTIFICATE-----\nMIICSTCCAe+gAwIBAgIQa/OwKRdbRy9EKOY/FWbLzDAKBggqhkjOPQQDAjB2MQsw\nCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy\nYW5jaXNjbzEZMBcGA1UEChMQb3JnMS5leGFtcGxlLmNvbTEfMB0GA1UEAxMWdGxz\nY2Eub3JnMS5leGFtcGxlLmNvbTAeFw0xODA4MjMxMzI5MjJaFw0yODA4MjAxMzI5\nMjJaMHYxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQH\nEw1TYW4gRnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMR8wHQYD\nVQQDExZ0bHNjYS5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D\nAQcDQgAEKl+kVSFHk1sEC3bgxzKf/PdtP30Vxr3mSGggWp35rOoDpLSuPoZ5WOoH\nAodWzEQByX+E/Os6A0ERLP5VKqUZC6NfMF0wDgYDVR0PAQH/BAQDAgGmMA8GA1Ud\nJQQIMAYGBFUdJQAwDwYDVR0TAQH/BAUwAwEB/zApBgNVHQ4EIgQgbkru/Jd2Z+Zi\nON0tgdQQVcKknBXBbahVI1JlSKi5NTwwCgYIKoZIzj0EAwIDSAAwRQIhAOF/YszG\nGlbllTSfccFp6hwjyjk4yiQ0gP1dsF1q0SfHAiAvtnnQBOspIl7AO+O0OPuZ6+Es\nENBQMvBfHQvUlKv8xQ==\n-----END CERTIFICATE-----\n”
}
},
peer0.org2.example.com”: {
“url”: “grpcs://192.168.11.132:9051”,
“grpcsOptions”: {
“ssl-target-name-override”: “peer0.org2.example.com
},
“tlsCACerts”: {
“pem”: “-----BEGIN CERTIFICATE-----\nMIICSjCCAfCgAwIBAgIRANNWFA8kKCq34eFYgV4MV28wCgYIKoZIzj0EAwIwdjEL\nMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG\ncmFuY2lzY28xGTAXBgNVBAoTEG9yZzIuZXhhbXBsZS5jb20xHzAdBgNVBAMTFnRs\nc2NhLm9yZzIuZXhhbXBsZS5jb20wHhcNMTgwODIzMTMyOTIyWhcNMjgwODIwMTMy\nOTIyWjB2MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UE\nBxMNU2FuIEZyYW5jaXNjbzEZMBcGA1UEChMQb3JnMi5leGFtcGxlLmNvbTEfMB0G\nA1UEAxMWdGxzY2Eub3JnMi5leGFtcGxlLmNvbTBZMBMGByqGSM49AgEGCCqGSM49\nAwEHA0IABDFX1AkZQXCXm/Bmgwrk1kRyYCK03IOzsMDOaQyS6g84Shf4PXMm2QzP\naoBaYGQQm1caFvHM3T49oBiAn5ADtRCjXzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNV\nHSUECDAGBgRVHSUAMA8GA1UdEwEB/wQFMAMBAf8wKQYDVR0OBCIEINpJaKJudXp5\nuL9SoHQz9suYZp3jJpiWWf8f2WZQ9HzHMAoGCCqGSM49BAMCA0gAMEUCIQC68lfi\nAsrPbuea63Ki9zLe0UpE9BA4oP8mjeX5PQMHaAIgPe3vvc/LpIox2AcJ94vryjkR\nb979Cny+kNqSINWFO50=\n-----END CERTIFICATE-----\n”
}
},
peer1.org2.example.com”: {
“url”: “grpcs://192.168.11.132:10051”,
“grpcsOptions”: {
“ssl-target-name-override”: “peer1.org2.example.com
},
“tlsCACerts”: {
“pem”: “-----BEGIN CERTIFICATE-----\nMIICSjCCAfCgAwIBAgIRANNWFA8kKCq34eFYgV4MV28wCgYIKoZIzj0EAwIwdjEL\nMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG\ncmFuY2lzY28xGTAXBgNVBAoTEG9yZzIuZXhhbXBsZS5jb20xHzAdBgNVBAMTFnRs\nc2NhLm9yZzIuZXhhbXBsZS5jb20wHhcNMTgwODIzMTMyOTIyWhcNMjgwODIwMTMy\nOTIyWjB2MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UE\nBxMNU2FuIEZyYW5jaXNjbzEZMBcGA1UEChMQb3JnMi5leGFtcGxlLmNvbTEfMB0G\nA1UEAxMWdGxzY2Eub3JnMi5leGFtcGxlLmNvbTBZMBMGByqGSM49AgEGCCqGSM49\nAwEHA0IABDFX1AkZQXCXm/Bmgwrk1kRyYCK03IOzsMDOaQyS6g84Shf4PXMm2QzP\naoBaYGQQm1caFvHM3T49oBiAn5ADtRCjXzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNV\nHSUECDAGBgRVHSUAMA8GA1UdEwEB/wQFMAMBAf8wKQYDVR0OBCIEINpJaKJudXp5\nuL9SoHQz9suYZp3jJpiWWf8f2WZQ9HzHMAoGCCqGSM49BAMCA0gAMEUCIQC68lfi\nAsrPbuea63Ki9zLe0UpE9BA4oP8mjeX5PQMHaAIgPe3vvc/LpIox2AcJ94vryjkR\nb979Cny+kNqSINWFO50=\n-----END CERTIFICATE-----\n”
}
}
},
“certificateAuthorities”: {
ca.org1.example.com”: {
“url”: “https://localhost:7054”,
“caName”: “ca-org1”,
“httpOptions”: {
“verify”: false
},
“tlsCACerts”:{
“path”: “crypto-config/peerOrganizations/org1.example.com/ca/ca.org1.example.com-cert.pem”
},
“registrar”:{
“enrollId”:“admin”,
“enrollSecret”:“adminpw”
}
},
ca.org2.example.com”: {
“url”: “https://192.168.11.132:8054”,
“caName”: “ca-org2”,
“httpOptions”: {
“verify”: false
},
“tlsCACerts”:{
“path”: “crypto-config/peerOrganizations/org2.example.com/ca/ca.org2.example.com-cert.pem”
},
“registrar”:{
“enrollId”:“admin”,
“enrollSecret”:“adminpw”
}
}
}
}


(Saeedi) #27

I think this is the issue


(Varun Raj) #28

Yeah may be. It’s not able to connect to the peer.


(Saeedi) #29

Yes that was the issue and now it has been installed successfully.


(Varun Raj) #30

Awesome @Saeedi Hope the platform was really helpful for you :slight_smile: Do contribute more and help us grow the community.


(Saeedi) #31

Back to original error :persevere:

lubuntu@lpeer1:~$ composer identity request -c PeerAdmin@byfn-network-org1 -u admin -s adminpw -d alice
Error: failed to request identity. Error trying to enroll user and return certificates. Error: Calling enrollment endpoint failed with error [Error: write EPROTO 140586318251840:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:…/deps/openssl/openssl/ssl/s23_clnt.c:827:
]
Command failed


(Saeedi) #32

You have helped me a lot to understand. Specifically your guides and articles :hugs:


(Varun Raj) #33

Looks like now the CA server has the ssl issue. Check if the certs are right and if the CA Server is getting the request and rejected later.


(Saeedi) #34

2018/11/16 06:19:32 [DEBUG] Successfully loaded identity table
2018/11/16 06:19:32 [DEBUG] Loading affiliations table
2018/11/16 06:19:32 [DEBUG] DB: Add affiliation org2
2018/11/16 06:19:32 [DEBUG] Affiliation ‘org2’ added
2018/11/16 06:19:32 [DEBUG] DB: Add affiliation org2.department1
2018/11/16 06:19:32 [DEBUG] Affiliation ‘org2.department1’ added
2018/11/16 06:19:32 [DEBUG] DB: Add affiliation org1
2018/11/16 06:19:32 [DEBUG] Affiliation ‘org1’ added
2018/11/16 06:19:32 [DEBUG] DB: Add affiliation org1.department1
2018/11/16 06:19:32 [DEBUG] Affiliation ‘org1.department1’ added
2018/11/16 06:19:32 [DEBUG] DB: Add affiliation org1.department2
2018/11/16 06:19:32 [DEBUG] Affiliation ‘org1.department2’ added
2018/11/16 06:19:32 [DEBUG] Successfully loaded affiliations table
2018/11/16 06:19:32 [DEBUG] Checking and performing migration, if needed
2018/11/16 06:19:32 [DEBUG] Updating database level to &{Identity:1 Affiliation:1 Certificate:1}
2018/11/16 06:19:32 [INFO] Initialized sqlite3 database at /etc/hyperledger/fabric-ca-server/fabric-ca-server.db
2018/11/16 06:19:32 [DEBUG] Initializing enrollment signer
2018/11/16 06:19:32 [DEBUG] No key found in BCCSP keystore, attempting fallback
2018/11/16 06:19:32 [DEBUG] validating configuration
2018/11/16 06:19:32 [DEBUG] validate local profile
2018/11/16 06:19:32 [DEBUG] profile is valid
2018/11/16 06:19:32 [DEBUG] validate local profile
2018/11/16 06:19:32 [DEBUG] profile is valid
2018/11/16 06:19:32 [DEBUG] validate local profile
2018/11/16 06:19:32 [DEBUG] profile is valid
2018/11/16 06:19:32 [DEBUG] CA initialization successful
2018/11/16 06:19:32 [INFO] Home directory for default CA: /etc/hyperledger/fabric-ca-server
2018/11/16 06:19:32 [DEBUG] 1 CA instance(s) running on server
2018/11/16 06:19:32 [INFO] Listening on http://0.0.0.0:7054

I have checked the ca container itself and same files are present in it.

root@ca:/etc/hyperledger/fabric-ca-server-config# ls
bb41461d957bc74999916b78b9b6ad4aea4bb2bed4b5897c7fda9185e86d5679_sk ca.org1.example.com-cert.pem


(Saeedi) #35

I am using the same config files provided with the repo here.


(Varun Raj) #36

For the fabric chaincode does it work?


(Saeedi) #37

Yes it works perfectly fine


(Saeedi) #38

I believe there is still some issue with connection profile


(Saeedi) #39

Keeping in mind all the names of on which every service is running on docker swarm. Is it correct ? Or there is some changes to be done in naming etc?

{
“name”: “saeedi”,
“x-type”: “hlfv1”,
“version”: “1.0.0”,
“client”: {
“organization”: “Org1”,
“connection”: {
“timeout”: {
“peer”: {
“endorser”: “300”,
“eventHub”: “300”,
“eventReg”: “300”
},
“orderer”: “300”
}
}
},
“channels”: {
“mychannel”: {
“orderers”: [
orderer0.example.com”,
orderer1.example.com
],
“peers”: {
peer0.org1.example.com”: {
“endorsingPeer”: true,
“chaincodeQuery”: true,
“eventSource”: true
},
peer1.org1.example.com”: {
“endorsingPeer”: true,
“chaincodeQuery”: true,
“eventSource”: true
},
peer0.org2.example.com”: {
“endorsingPeer”: true,
“chaincodeQuery”: true,
“eventSource”: true
},
peer1.org2.example.com”: {
“endorsingPeer”: true,
“chaincodeQuery”: true,
“eventSource”: true
}
}
}
},
“organizations”: {
“Org1”: {
“mspid”: “Org1MSP”,
“peers”: [
peer0.org1.example.com”,
peer1.org1.example.com
],
“certificateAuthorities”: [
ca.org1.example.com
]
},
“Org2”: {
“mspid”: “Org2MSP”,
“peers”: [
peer0.org2.example.com”,
peer1.org2.example.com
],
“certificateAuthorities”: [
ca.org2.example.com
]
}
},
“orderers”: {
orderer0.example.com”: {
“url”: “grpcs://localhost:7050”,
“grpcOptions”: {
“ssl-target-name-override”: “orderer0.example.com
},
“tlsCACerts”: {
“pem”: “-----BEGIN CERTIFICATE-----\nMIICNTCCAdugAwIBAgIQfwZ7nL098nQ6lprLT2x6CTAKBggqhkjOPQQDAjBsMQsw\nCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy\nYW5jaXNjbzEUMBIGA1UEChMLZXhhbXBsZS5jb20xGjAYBgNVBAMTEXRsc2NhLmV4\nYW1wbGUuY29tMB4XDTE4MDgyMzEzMjkyM1oXDTI4MDgyMDEzMjkyM1owbDELMAkG\nA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBGcmFu\nY2lzY28xFDASBgNVBAoTC2V4YW1wbGUuY29tMRowGAYDVQQDExF0bHNjYS5leGFt\ncGxlLmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABJvbPUbwFxFmQiMrg2so\nwuXj8Ia888TzVtVeujRDD1r5l6+B3RSqwZSl23WOQZURp/MUoeZ48imsQsw2mEZV\nAsmjXzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNVHSUECDAGBgRVHSUAMA8GA1UdEwEB\n/wQFMAMBAf8wKQYDVR0OBCIEIFuNvpLd5RH0p0q8jx8LT4qEfzZp7tdO0UNBYDz3\nGnovMAoGCCqGSM49BAMCA0gAMEUCIQDHLHYzcWzLLhmmAVzUZA4fOnNLhit8z14p\nLmTBhfeS4AIgWqMRTOi8wDXMtC9/CdnC1lOliJKswfP0/Ai2+UCozPY=\n-----END CERTIFICATE-----\n”
}
},
orderer1.example.com”: {
“url”: “grpcs://192.168.11.132:7050”,
“grpcOptions”: {
“ssl-target-name-override”: “orderer1.example.com
},
“tlsCACerts”: {
“pem”: “-----BEGIN CERTIFICATE-----\nMIICNTCCAdugAwIBAgIQfwZ7nL098nQ6lprLT2x6CTAKBggqhkjOPQQDAjBsMQsw\nCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy\nYW5jaXNjbzEUMBIGA1UEChMLZXhhbXBsZS5jb20xGjAYBgNVBAMTEXRsc2NhLmV4\nYW1wbGUuY29tMB4XDTE4MDgyMzEzMjkyM1oXDTI4MDgyMDEzMjkyM1owbDELMAkG\nA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBGcmFu\nY2lzY28xFDASBgNVBAoTC2V4YW1wbGUuY29tMRowGAYDVQQDExF0bHNjYS5leGFt\ncGxlLmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABJvbPUbwFxFmQiMrg2so\nwuXj8Ia888TzVtVeujRDD1r5l6+B3RSqwZSl23WOQZURp/MUoeZ48imsQsw2mEZV\nAsmjXzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNVHSUECDAGBgRVHSUAMA8GA1UdEwEB\n/wQFMAMBAf8wKQYDVR0OBCIEIFuNvpLd5RH0p0q8jx8LT4qEfzZp7tdO0UNBYDz3\nGnovMAoGCCqGSM49BAMCA0gAMEUCIQDHLHYzcWzLLhmmAVzUZA4fOnNLhit8z14p\nLmTBhfeS4AIgWqMRTOi8wDXMtC9/CdnC1lOliJKswfP0/Ai2+UCozPY=\n-----END CERTIFICATE-----\n”
}
}
},
“peers”: {
peer0.org1.example.com”: {
“url”: “grpcs://localhost:7051”,
“grpcOptions”: {
“ssl-target-name-override”: “peer0.org1.example.com
},
“tlsCACerts”: {
“pem”: “-----BEGIN CERTIFICATE-----\nMIICSTCCAe+gAwIBAgIQa/OwKRdbRy9EKOY/FWbLzDAKBggqhkjOPQQDAjB2MQsw\nCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy\nYW5jaXNjbzEZMBcGA1UEChMQb3JnMS5leGFtcGxlLmNvbTEfMB0GA1UEAxMWdGxz\nY2Eub3JnMS5leGFtcGxlLmNvbTAeFw0xODA4MjMxMzI5MjJaFw0yODA4MjAxMzI5\nMjJaMHYxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQH\nEw1TYW4gRnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMR8wHQYD\nVQQDExZ0bHNjYS5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D\nAQcDQgAEKl+kVSFHk1sEC3bgxzKf/PdtP30Vxr3mSGggWp35rOoDpLSuPoZ5WOoH\nAodWzEQByX+E/Os6A0ERLP5VKqUZC6NfMF0wDgYDVR0PAQH/BAQDAgGmMA8GA1Ud\nJQQIMAYGBFUdJQAwDwYDVR0TAQH/BAUwAwEB/zApBgNVHQ4EIgQgbkru/Jd2Z+Zi\nON0tgdQQVcKknBXBbahVI1JlSKi5NTwwCgYIKoZIzj0EAwIDSAAwRQIhAOF/YszG\nGlbllTSfccFp6hwjyjk4yiQ0gP1dsF1q0SfHAiAvtnnQBOspIl7AO+O0OPuZ6+Es\nENBQMvBfHQvUlKv8xQ==\n-----END CERTIFICATE-----\n”
}
},
peer1.org1.example.com”: {
“url”: “grpcs://localhost:8051”,
“grpcOptions”: {
“ssl-target-name-override”: “peer1.org1.example.com
},
“tlsCACerts”: {
“pem”: “-----BEGIN CERTIFICATE-----\nMIICSTCCAe+gAwIBAgIQa/OwKRdbRy9EKOY/FWbLzDAKBggqhkjOPQQDAjB2MQsw\nCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy\nYW5jaXNjbzEZMBcGA1UEChMQb3JnMS5leGFtcGxlLmNvbTEfMB0GA1UEAxMWdGxz\nY2Eub3JnMS5leGFtcGxlLmNvbTAeFw0xODA4MjMxMzI5MjJaFw0yODA4MjAxMzI5\nMjJaMHYxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQH\nEw1TYW4gRnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMR8wHQYD\nVQQDExZ0bHNjYS5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D\nAQcDQgAEKl+kVSFHk1sEC3bgxzKf/PdtP30Vxr3mSGggWp35rOoDpLSuPoZ5WOoH\nAodWzEQByX+E/Os6A0ERLP5VKqUZC6NfMF0wDgYDVR0PAQH/BAQDAgGmMA8GA1Ud\nJQQIMAYGBFUdJQAwDwYDVR0TAQH/BAUwAwEB/zApBgNVHQ4EIgQgbkru/Jd2Z+Zi\nON0tgdQQVcKknBXBbahVI1JlSKi5NTwwCgYIKoZIzj0EAwIDSAAwRQIhAOF/YszG\nGlbllTSfccFp6hwjyjk4yiQ0gP1dsF1q0SfHAiAvtnnQBOspIl7AO+O0OPuZ6+Es\nENBQMvBfHQvUlKv8xQ==\n-----END CERTIFICATE-----\n”
}
},
peer0.org2.example.com”: {
“url”: “grpcs://192.168.11.132:9051”,
“grpcOptions”: {
“ssl-target-name-override”: “peer0.org2.example.com
},
“tlsCACerts”: {
“pem”: “-----BEGIN CERTIFICATE-----\nMIICSjCCAfCgAwIBAgIRANNWFA8kKCq34eFYgV4MV28wCgYIKoZIzj0EAwIwdjEL\nMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG\ncmFuY2lzY28xGTAXBgNVBAoTEG9yZzIuZXhhbXBsZS5jb20xHzAdBgNVBAMTFnRs\nc2NhLm9yZzIuZXhhbXBsZS5jb20wHhcNMTgwODIzMTMyOTIyWhcNMjgwODIwMTMy\nOTIyWjB2MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UE\nBxMNU2FuIEZyYW5jaXNjbzEZMBcGA1UEChMQb3JnMi5leGFtcGxlLmNvbTEfMB0G\nA1UEAxMWdGxzY2Eub3JnMi5leGFtcGxlLmNvbTBZMBMGByqGSM49AgEGCCqGSM49\nAwEHA0IABDFX1AkZQXCXm/Bmgwrk1kRyYCK03IOzsMDOaQyS6g84Shf4PXMm2QzP\naoBaYGQQm1caFvHM3T49oBiAn5ADtRCjXzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNV\nHSUECDAGBgRVHSUAMA8GA1UdEwEB/wQFMAMBAf8wKQYDVR0OBCIEINpJaKJudXp5\nuL9SoHQz9suYZp3jJpiWWf8f2WZQ9HzHMAoGCCqGSM49BAMCA0gAMEUCIQC68lfi\nAsrPbuea63Ki9zLe0UpE9BA4oP8mjeX5PQMHaAIgPe3vvc/LpIox2AcJ94vryjkR\nb979Cny+kNqSINWFO50=\n-----END CERTIFICATE-----\n”
}
},
peer1.org2.example.com”: {
“url”: “grpcs://192.168.11.132:10051”,
“grpcOptions”: {
“ssl-target-name-override”: “peer1.org2.example.com
},
“tlsCACerts”: {
“pem”: “-----BEGIN CERTIFICATE-----\nMIICSjCCAfCgAwIBAgIRANNWFA8kKCq34eFYgV4MV28wCgYIKoZIzj0EAwIwdjEL\nMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG\ncmFuY2lzY28xGTAXBgNVBAoTEG9yZzIuZXhhbXBsZS5jb20xHzAdBgNVBAMTFnRs\nc2NhLm9yZzIuZXhhbXBsZS5jb20wHhcNMTgwODIzMTMyOTIyWhcNMjgwODIwMTMy\nOTIyWjB2MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UE\nBxMNU2FuIEZyYW5jaXNjbzEZMBcGA1UEChMQb3JnMi5leGFtcGxlLmNvbTEfMB0G\nA1UEAxMWdGxzY2Eub3JnMi5leGFtcGxlLmNvbTBZMBMGByqGSM49AgEGCCqGSM49\nAwEHA0IABDFX1AkZQXCXm/Bmgwrk1kRyYCK03IOzsMDOaQyS6g84Shf4PXMm2QzP\naoBaYGQQm1caFvHM3T49oBiAn5ADtRCjXzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNV\nHSUECDAGBgRVHSUAMA8GA1UdEwEB/wQFMAMBAf8wKQYDVR0OBCIEINpJaKJudXp5\nuL9SoHQz9suYZp3jJpiWWf8f2WZQ9HzHMAoGCCqGSM49BAMCA0gAMEUCIQC68lfi\nAsrPbuea63Ki9zLe0UpE9BA4oP8mjeX5PQMHaAIgPe3vvc/LpIox2AcJ94vryjkR\nb979Cny+kNqSINWFO50=\n-----END CERTIFICATE-----\n”
}
}
},
“certificateAuthorities”: {
ca.org1.example.com”: {
“url”: “https://localhost:7054”,
“caName”: “ca-org1”,
“httpOptions”: {
“verify”: false
},
“tlsCACerts”:{
“path”: “crypto-config/peerOrganizations/org1.example.com/ca/ca.org1.example.com-cert.pem”
},
“registrar”:{
“enrollId”:“admin”,
“enrollSecret”:“adminpw”
}
},
ca.org2.example.com”: {
“url”: “https://192.168.11.132:8054”,
“caName”: “ca-org2”,
“httpOptions”: {
“verify”: false
},
“tlsCACerts”:{
“path”: “crypto-config/peerOrganizations/org2.example.com/ca/ca.org2.example.com-cert.pem”
},
“registrar”:{
“enrollId”:“admin”,
“enrollSecret”:“adminpw”
}
}
}
}


(Saeedi) #41

I thought there was duplication in file in ca part but i was wrong