pem和key 转换为p12
openssl pkcs12 -export -in simm-2021.pem -inkey simm-2021.key -out keystore.p12 -passout pass:${password}
需要进入java安装目录的bin目录下,使用keytool
p12 转换为jks
keytool -importkeystore -srckeystore keystore.p12 -srcstoretype PKCS12 -destkeystore keystore.jks -srcstorepass ${password} -deststorepass ${password}
查看结果
$ keytool --list -keystore keystore.jks -storepass <passvalue>