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
- which PEM file we should give to the
newPeer()function? or thegrpc.credentials.createSsl()function because this one is used in the back ... https://github.com/hyperledger/fabric-sdk-node/blob/release/fabric-client/lib/Remote.js#L149 - how should we structure this one, which certificates should be in it when using intermediate certificates?
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
extractCerts.jswhich shows how to grab the files from the CA. - MisterStrickland