Creating a self signed certificate

A self signed certificate can be generated using the keytool utility that ships with the Java Standard Edition Runtime Environment (JRE). This tool is located in the ../bin directory of the Java JRE installation.
To generate a self signed certificate, execute the following command on the command line:

keytool -genkey -alias MyPlugins -keystore mykeystore.ks  -validity 10000

When the command is run, it will ask a couple of questions in the console:

When done, the self signed certificate will be available as the file mykeystore.ks in the directory where the keytool command was executed.