我从公司证书提供商处获得了以下文件。
jenkins.int.XX.com.key
XX_Inc_Private_Root_CA.base64.cer
XX_Inc_Private_Root_CA.crt
XX_Inc_Private_SSL_CA.509.cer
XX_Inc_Private_SSL_CA.509.pem
以下是我运行的转换的两个命令:
openssl pkcs12 -export -out jenkins_keystore.p12 -passout 'pass:changeit' -inkey jenkins.int.xx.com.key -in XX_Inc_Private_Root_CA.base64.cer
error message: No certificate matches private key
openssl pkcs12 -export -out jenkins_keystore.p12 -passout 'pass:changeit' -inkey jenkins.int.xx.com.key -in XX_Inc_Private_SSL_CA.509.cer
error message: unable to load certificates
正确的做法是什么?