This is a quick and to the point video on how to sign a Java ARchive (JAR) file using an openssl self-signed certificate.
If you want to know more about creating self-signed certs with openssl see: http://youtu.be/LHUbQtUeQ0o
To know more about openssl see:
http://openssl.org.
To know about JAR signing and verification see:
http://docs.oracle.com/javase/tutorial/deployment/jar/intro.html
For more tutorials, see https://brightminded.com/updates/