选择一个安装号openssl和java环境的服务器
openssl pkcs12 -export -in '8076163__chnenergy.com.cn.pem' -inkey '8076163__chnenergy.com.cn.key' -out 'keystore.p12' -passout pass:123456
然后再输入:
keytool -importkeystore -srckeystore 'keystore.p12' -srcstoretype PKCS12 -destkeystore 'keystore.jks' -srcstorepass 123456 -deststorepass 123456
证书转换成功
标签:keystore,证书,openssl,jks,pem,123456 From: https://www.cnblogs.com/Fengdengshuai/p/16592122.html