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>
cat inter.crt root.crt > ca-chain.crt
openssl pkcs12 -export -chain -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-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