crt转为p12证书
openssl pkcs12 -export -in from.crt -inkey privatekey.key -out to.p12 -name "alias"
jks p12互转
p12 to jks
keytool -importkeystore -srckeystore keystore.p12 -destkeystore keystore.jks -deststoretype pkcs12
jks to p12
keytool -importkeystore -srckeystore keystore.jks -srcstoretype JKS -deststoretype PKCS12 -destkeystore keystore.p12