The example uses the keytool utility to create a new self signed certificate.
This will create a keystore.jks file containing a private key and self signed certificate.
- Open the command console (Run as Administartor) on whatever operating system you are using and navigate to the directory where keytool.exe is located.
- Run the following command (where validity is the number of days before the certificate will expire):
keytool -genkey -keyalg RSA -alias selfsigned -keystore keystore.jks -keysize 1024
- Fill in the prompts for your organization information.
This will create a keystore.jks file containing a private key and self signed certificate.