1
votes

we've setup a Hyperledger Fabric network and installed the fabcar sample (https://github.com/hyperledger/fabric-samples/tree/release/fabcar) on it ... we are using grpcs to communicate but for some reason the hyperledger-client-sdk doesn't want to connect to our Peer. It just gives us the following error in the logs without any further explanation: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Connect

We don't see anything appearing in the logs on the Peer even though the Peer receives tcp packets when the proposal is sent.

We also tried to invoke the chaincode using the cli and this works without any problems.

Kind regards,

Daan

1
This link shows how to extract the PEM you're looking for - it provides a file called extractCerts.js which shows how to grab the files from the CA. - MisterStrickland
Hey, were you able to solve this issue? i am facing the same - user3567365

1 Answers

1
votes

The PEM file must contain the list of certificates from the root to the peer, one after another. You must also set the ssl-target-name-override option of newPeer() to the peer hostname corresponding to the CN field of the peer certificate.