diff -r 4beaaa539ed9 -r f76e13e69c95 java/keytool --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/keytool Mon Jan 21 10:13:02 2013 +0100 @@ -0,0 +1,11 @@ +http://community.jboss.org/wiki/GeneratingSelfSignedCertificateWithKeytool +Generating Self Signed Certificate with Keytool + +Creating private/public key pair: +keytool -genkey -alias ... -keyalg RSA -validity 365 -keystore server.keystore -storetype JKS + +Extracting the public key: +keytool -export -alias ... -keystore server.keystore -rfc -file public.cert + +Creating the Truststore: +keytool -import -alias ... -file public.cert -storetype JKS -keystore server.truststore