It's all about Weblogic..!!!

January 15, 2011

Steps to generate self signed certificates using keytool

Filed under: Security — streethawkz @ 1:43 am

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



            1. How about when using a certificate from verisign?

              Comment by ocpjp — February 18, 2011 @ 5:32 am

            2. Have a look at the link below :

              Link :

              Comment by streethawkz — February 18, 2011 @ 2:55 pm

            3. 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

            4. 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

            RSS feed for comments on this post. TrackBack URI

            Leave a Reply

            Fill in your details below or click an icon to log in:


            You are commenting using your account. Log Out /  Change )

            Google+ photo

            You are commenting using your Google+ account. Log Out /  Change )

            Twitter picture

            You are commenting using your Twitter account. Log Out /  Change )

            Facebook photo

            You are commenting using your Facebook account. Log Out /  Change )


            Connecting to %s

            Blog at