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
- Follow onscreen instruction:
- You will see new certificate got generated inside the folder which you had used in command:
- For more detail information please refer oracle tutorial here