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