试试
openssl pkcs12 -export -out domain.name.pfx -inkey private.key -in certificate.crt
谢谢
openssl pkcs12 -export -out cert.pfx -inkey private.key -in certificate.crt -certfile ca_bundle.crt
keytool -importkeystore -srckeystore cert.pfx -srcstorepass 123456 -srcstoretype pkcs12 -destkeystore keystore.jks -deststoretype jks -deststorepass 123456