Time for action – creating a self-signed certificate

To sign content, a private key and public key must be used. The private key is used for signing the content, and the public key is used for verifying that the content has not been modified. A key-pair can be created using the Java keytool utility on the command line.

  1. Run keytool to see a list of options, and to verify that it is on the path.
  2. Create a new key-pair by running (all on one line):
    keytool -genkey
     -alias packtpub
     -keypass SayK3ys
     -keystore /path/to/keystore
     -storepass BarC0der
     -dname "cn=packtpub,ou=pub,o=packt"
  3. Verify that the key was generated correctly:
    keytool -list -keystore /path/to/keystore -storepass BarC0der
  4. Create a JAR file for testing purposes, for example by zipping the contents ...

Get Eclipse Plug-in Development Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.