I have created 3 pods(statefulset)
1 .org-1 -->peer1 (acme-peer)
2.org2 -->peer2(budget-peer)
3.orderer(solo)
Use of cryptogen to generate crypto-material of network
connection.json is mentioned below.
{
"name": "first-network-acme",
"version": "1.0.0",
"client": {
"organization": "acme",
"connection": {
"timeout": {
"peer": {
"endorser": "300"
}
}
}
},
"organizations": {
"peer1.acme.com": {
"mspid": "AcmeMSP",
"peers": [
"peer1.acme.com"
],
"certificateAuthorities": [
"ca.acme.com"
],
"adminPrivateKey":{
"path":"/var/hyperledger/users/Admin@acme.com/msp/keystore/priv_sk"
},
"signedCert":{
"path":"/var/hyperledger/users/Admin@acme.com/msp/signcerts/Admin@acme.com-cert.pem"
}
}
},
"orderers": {
"acme-orderer": {
"url": "grpc://172.17.0.3.default.svc.acme.orderer.com:30750",
"tlsCACerts": {
"pem": "-----BEGIN CERTIFICATE-----test-----END CERTIFICATE-----"
},
"grpcOptions": {
"ssl-target-name-override": "acme-orderer"
}
}
},
"peers": {
"peer1.acme.com": {
"url": "grpc://0.0.0.0:30751",
"tlsCACerts": {
"pem": "-----BEGIN CERTIFICATE-----test-----\n"
},
"grpcOptions": {
"ssl-target-name-override": "peer1.acme.com",
"hostnameOverride": "peer1.acme.com",
"grpc.keepalive_time_ms": 1200000
}
}
},
"certificateAuthorities": {
"ca.acme.com": {
"url": "http://0.0.0.0:30751",
"caName": "ca.acme.com",
"tlsCACerts": {
"pem": "-----BEGIN CERTIFICATE-----test-----\n"
},
"httpOptions": {
"verify": false
}
}
}
}
While running enrollAdmin.js getting the error :error: [FabricCAClientService.js]: Failed to enroll admin,Calling enroll endpoint failed with error [Error: Parse Error: Expected HTTP/]