Importing private RSA key into java keystore
From VVCWiki
Jump to navigationJump to search
openssl pkcs12 -export -chain -in server.crt -inkey server.key \ -out server.p12 -name myserver \ -CAfile ca.crt
keytool -importkeystore -destkeystore server.jks \ -srckeystore server.p12 -srcstoretype PKCS12