java/keytool
changeset 29 f76e13e69c95
parent 15 f383a7199631
equal deleted inserted replaced
28:4beaaa539ed9 29:f76e13e69c95
       
     1 http://community.jboss.org/wiki/GeneratingSelfSignedCertificateWithKeytool
       
     2 Generating Self Signed Certificate with Keytool
       
     3 
       
     4 Creating private/public key pair:
       
     5 keytool -genkey -alias ... -keyalg RSA -validity 365 -keystore server.keystore -storetype JKS
       
     6 
       
     7 Extracting the public key:
       
     8 keytool -export -alias ... -keystore server.keystore -rfc -file public.cert
       
     9 
       
    10 Creating the Truststore:
       
    11 keytool -import -alias ... -file public.cert -storetype JKS -keystore server.truststore