Skip to content

Instantly share code, notes, and snippets.

@MichalZalecki MichalZalecki/change.js Secret
Created Jul 30, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.