How to create a Self-Signed Keystore and Truststore  SSL Certificates?

030117_0457_Howtocreate1 How to create a Self Signed Keystore and Truststore SSL Certificates?

 

In this section, we walk through on creating Keystore and truststore SSL certificates using Java keytool utility. JDK must be installed on the system. The keytool utility is available in JAVA_HOME\bin directory

 

Create a directory to store the certificates

030117_0457_Howtocreate2 How to create a Self Signed Keystore and Truststore SSL Certificates?

 

Create a Keystore certificate

Issue the below command to create keystore certificate. Replace localhost with your FQDN and password with your own password. The password you provide here is the Identity Store password

 

keytool.exe -genkey -keyalg RSA -alias localhost -keystore keystore.jks -storepass password123 -validity 360

 

030117_0457_Howtocreate3 How to create a Self Signed Keystore and Truststore SSL Certificates?

 

Export the Certificate to add it into Truststore

Export the certificate so that we can use it in the Truststore.

 

keytool.exe -export -alias localhost -file localhost.cer -keystore keystore.jks

 

030117_0457_Howtocreate4 How to create a Self Signed Keystore and Truststore SSL Certificates?

 

Create a Truststore certificate

 

Create a Truststore certificate. Input the Truststore password at the end as shown in the image. The password you provide here is the Trust Store password

 

keytool.exe -import -v -trustcacerts -alias localhost -file localhost.cer -keystore truststore.jks

 

030117_0457_Howtocreate5 How to create a Self Signed Keystore and Truststore SSL Certificates?

 

The Certificates are created like below

 

030117_0457_Howtocreate6 How to create a Self Signed Keystore and Truststore SSL Certificates?

govindan How to create a Self Signed Keystore and Truststore SSL Certificates?
Connect me

Govind

Thank you for visiting my personal blog. Myself Govindan, Software Developer by profession since 2006 and hence I started this blog early in 2016 and ever since I've been writing about technologies experienced and learnings of everyday life.

The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.

Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply šŸ™‚
govindan How to create a Self Signed Keystore and Truststore SSL Certificates?
Connect me
By | 2017-03-02T22:49:51+00:00 March 1st, 2017|Categories: Java, WebLogic|Tags: , , |0 Comments
Like us on Facebook.
Connect!