Importing private RSA key into java keystore: Difference between revisions
From VVCWiki
Jump to navigationJump to search
(Created page with "<pre> openssl pkcs12 -export -in server.crt -inkey server.key \ -out server.p12 -name myserver \ -CAfile ca.crt -caname myca </pre> <pre> keytoo...") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<pre> | <pre> | ||
openssl pkcs12 -export -in server.crt -inkey server.key \ | cat inter.crt root.crt > ca-chain.crt | ||
openssl pkcs12 -export -chain -in server.crt -inkey server.key \ | |||
-out server.p12 -name myserver \ | -out server.p12 -name myserver \ | ||
-CAfile ca.crt | -CAfile ca-chain.crt | ||
</pre> | </pre> | ||
<pre> | <pre> | ||
keytool -importkeystore -destkeystore server.jks \ | keytool -importkeystore -destkeystore server.jks \ | ||
-srckeystore server.p12 -srcstoretype PKCS12 | -srckeystore server.p12 -srcstoretype PKCS12 | ||
</pre> | </pre> |
Latest revision as of 19:27, 30 April 2013
cat inter.crt root.crt > ca-chain.crt openssl pkcs12 -export -chain -in server.crt -inkey server.key \ -out server.p12 -name myserver \ -CAfile ca-chain.crt
keytool -importkeystore -destkeystore server.jks \ -srckeystore server.p12 -srcstoretype PKCS12