Java keytool generate self signed certificate

Java keytool generate self signed certificate

To generate self signed server certificate you can use java keytool command. Please use below parameter with keytool and follow on screen instruction to enter the name, organizational unit, organization, locality, state, and country code.

Keytool uses RSA encryption technology developed by RSA Data Security, Inc.

  • Go to %JAVA_HOME%\bin folder then execute this command: keytool -genkey -alias javahonk -keyalg RSA -keystore C:\JavaHonk\tomcatSSL\javahonk

Java keytool generate self signed certificate

  • ¬†Follow onscreen instruction:

Java keytool generate self signed certificate

  • You will see new certificate got generated inside the folder which you had used in command:

Java keytool generate self signed certificate

  • For more detail information please refer oracle tutorial here

Leave a Reply

Your email address will not be published. Required fields are marked *