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
Line 6: Line 6:


<pre>
<pre>
keytool -importcert -trustcacerts -alias "videonext CA" \
keytool -importcert -trustcacerts -alias myca \
               -file videoNEXT.crt -keystore certificate.jks  
               -file ca.crt -keystore server.jks  
</pre>
</pre>



Revision as of 17:29, 25 April 2013

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