User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

misc:javassl [2017/12/08 15:14]
tschulz created
misc:javassl [2017/12/08 15:17] (current)
Line 2: Line 2:
 ===== Import OpenSSL Certs and keys ===== ===== Import OpenSSL Certs and keys =====
 +  * Have as least CA and Server certs and Server key
 <​file>​ <​file>​
 keytool -keystore javassl.jks -import -trustcacerts -alias root -file CA.crt keytool -keystore javassl.jks -import -trustcacerts -alias root -file CA.crt
Line 7: Line 8:
 keytool -keystore javassl.jks -import -trustcacerts -alias <​FQDN>​ -file server_key.crt ​ keytool -keystore javassl.jks -import -trustcacerts -alias <​FQDN>​ -file server_key.crt ​
 </​file>​ </​file>​
 +===== Create new SSL cert for Java Server =====
 +keytool -genkeypair -keystore keystore.jks -alias keyname
 +keytool -export -alias keyname -file keyname.crt
 +keytool -importcert -file keyname.crt -keystore truststore.jks
 +keytool -list -v -keystore keystore.jks
misc/javassl.txt · Last modified: 2017/12/08 15:17 by tschulz