1

To add a new peer in Hyperledger Fabric I am using following command

peer = client.newPeer('grpcs://localhost:7051')

getting following error

PEM encoded certificate is required

Please help!

Tabz
  • 137
  • 1
  • 11
  • I am unclear what you are trying to do. Can you please provide more context? – christo4ferris Jan 11 '18 at 18:42
  • I was trying to run the middleware for Hyper Ledger Fabric locally, and new peer takes argument which we have to specify the TLS certificate name, worked out the name should be `PEM`. Thanks! – Tabz Jan 11 '18 at 22:29
  • were you able to fix this issue. ? also what is your second argument – Pandit Mar 24 '18 at 18:58
  • @rattanKunwar I have fixed this issue by including certificate file which is also called as `pem file` `peer = client.newPeer('grpcs://localhost:7051', {pem:(path to your pem file)`} – Tabz Apr 04 '18 at 12:03

1 Answers1

0

You can find PEM certificate in first-network folder and in connection-org1/org2.json. Just start your network and after starting it copy the PEM certi.