This article shows you how to generate a self signed certificate using the Java Keytool. To generate a self signed certificate:
- Log into the PC as a local administrator
- Navigate to the Bin directory of your Java installation (typically C:\Program Files (x86)\Java\jre7\bin)
- Run the following command (feel free to change the password to something more secure):
keytool -genkey -keyalg RSA -alias selfsigned -keystore keystore.jks -storepass password -validity 36000 -keysize 2048
- Follow the onscreen prompts and enter your certificate details
A keystore file will then be generated in your working directory, called keystore.jks. This is your Java self signed certificate and contains the public and private keye information.