Skip to content

Instantly share code, notes, and snippets.

@MichalZalecki
Created July 30, 2018 08:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MichalZalecki/12a84a0c125f25eb59a16139fceee29c to your computer and use it in GitHub Desktop.
Save MichalZalecki/12a84a0c125f25eb59a16139fceee29c to your computer and use it in GitHub Desktop.
const serverCert = fs.readFileSync('./crypto-config/peerOrganizations/org1.example.com/users/User1@org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem', 'utf8');
const peer = fabric_client.newPeer('grpcs://localhost:7051', { pem: serverCert, 'ssl-target-name-override': 'peer0.org1.example.com' });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment