# openssl pkcs12 -export -out $OUTPUT_FILE_NAME_PKCS12 -inkey $PRIVATE_KEY_FILE -in $SERVER_CERT_FILE -name $NAME_WHAT_YOU_WANT
openssl pkcs12 -export -out keystore.p12 -inkey your_key.key -in your_cert.crt -name your_alias
# keytool --importkeystore -srckeystore $OUTPUT_FILE_NAME_PKCS12 -srcstoretype PKCS12 -destkeystore $OUTPUT_FILE_NAME_TO_JKS -deststoretype JKS -alias $NAME_WHAT_YOU_WANT
keytool -importkeystore -srckeystore keystore.p12 -srcstoretype PKCS12 -destkeystore keystore.jks -deststoretype JKS -alias your_alias