Importing private RSA key into java keystore: Difference between revisions
From VVCWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<pre> | <pre> | ||
openssl pkcs12 -export -in server.crt -inkey server.key \ | 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.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> |
Revision as of 19:26, 30 April 2013
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