简体   繁体   中英

Error while restarting ca server in Hypeledger Fabric

Intermediate ca server docker container gets exited somehow so I have tried to restart the corresponding docker container but I'm not able to restart the service and these are the logs of the docker container:

Error: Validation of certificate and key failed: Invalid certificate and/or key in files '/tlsca/ca-cert.pem' and '/etc/hyperledger/fabric-ca-server-config/ica.consigner.biltilink.com.key.pem': Public key and private key do not match

Can someone please help me with this as to how to restart the service properly because I'm confused how the certificates gets changed while I'm just restarting the service. And please help me with this so that I can restart my service.

If you restart the CA server and want to all previously certificates to continue to work with the CA, you MUST use the same cert/key pair as before in fabric-ca-server.config file because it will create new set of keys and certificates if previously certificate and key not points n server configuration file. So docker-comose file have volume section for persistent keys, cert and fabric-ca-server.config file

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM