Below are the commands we need to run to generate self signed certificates :
- keytool -genkey -alias cooldragon -keyalg RSA -keypass privatepassword -keystore identity.jks -storepass password ( create a key pair )
- keytool -export -alias cooldragon -file root.cer -keystore identity.jks ( export the certificate from identity keystore into a file, say root.cer)
- keytool -import -alias cooldragon -trustcacerts -file root.cer -keystore trust.jks ( import the certificate you exported into trust.jks )
- We can list the certificates present in the identity.jks using the following command :
keytool -list -v -keystore identity.jks -storepass password
- Now lets view the file that was exported from the identity.jks ( i.e root.cer )
keytool -printcert -file root.cer
- To list the contents of trust.jks use the following command :
keytool -list -v -keystore trust.jks -storepass password






How about when using a certificate from verisign?
Comment by ocpjp — February 18, 2011 @ 5:32 am
Have a look at the link below :
Link : http://wls4mscratch.wordpress.com/2010/06/08/steps-to-create-a-csr-and-sign-with-verisign/
Comment by streethawkz — February 18, 2011 @ 2:55 pm
Whoa! This blog looks exactly like my old one!
It’s on a completely different subject but it has pretty much the same page layout and design. Great choice of colors!
Comment by Lady Armani — September 14, 2012 @ 2:15 pm
What’s up, after reading this amazing piece of writing i am as well happy to share my experience here with mates.
Comment by Juegos Online Gratis — December 19, 2012 @ 1:21 pm