CA stack service failed to start

2019-08-20 05:10发布

问题:

I'm having this error while deploying stack of CA.

Error: Failed to find private key for certificate in '/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem': Could not find matching private key for SKI: Failed getting key for SKI [[21 208 34 108 92 98 114 142 23 136 0 189 188 55 155 135 23 90 147 173 157 62 155 19 173 212 128 3 175 212 121 41]]: Key with SKI 15d0226c5c62728e178800bdbc379b87175a93ad9d3e9b13add48003afd47929 not found in /etc/hyperledger/fabric-ca-server/msp/keystore

I have made sure that key is same as "crypto-config/peerOrganizations/org1.example.com/ca" in yml file. But still its throwing error.. Any idea about this?

回答1:

Within the docker run command, are you placing the secret key inside curly brackets such as this?

FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/{15d0226c5c62728e178800bdbc379b87175a93ad9d3e9b13add48003afd47929}

If so, the cause of your error is that this isn't the correct path. Remove the brackets to make the path complete.