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: ?
});