2

As we know --csr.cn its the common name field of the certificate signing request. And using fabric-ca-client we can point --csr.cn ca.myOrg, but nodeJS fabric-ca-client expect certificate.

How i can do somefing like this:

fabric-ca-client enroll -u https://adminTester:passwordTester@ca:7054 --csr.cn ca.myOrg

on nodeJS?

const enrollment = await fabric_ca_client.enroll({
  enrollmentID: "adminTester",
  enrollmentSecret: "passwordTester",
  csr: ?
});
Andrey76ru
  • 37
  • 4
  • This might help: https://stackoverflow.com/questions/55687562/setting-pem-attributes-for-user-identities-in-hyperledger-fabric – Mrudav Shukla Dec 13 '19 at 05:25

0 Answers0