Book Image

Eclipse Plug-in Development Beginner's Guide - Second Edition

By : Alex Blewitt
Book Image

Eclipse Plug-in Development Beginner's Guide - Second Edition

By: Alex Blewitt

Overview of this book

Eclipse is used by everyone from indie devs to NASA engineers. Its popularity is underpinned by its impressive plug-in ecosystem, which allows it to be extended to meet the needs of whoever is using it. This book shows you how to take full advantage of the Eclipse IDE by building your own useful plug-ins from start to finish. Taking you through the complete process of plug-in development, from packaging to automated testing and deployment, this book is a direct route to quicker, cleaner Java development. It may be for beginners, but we're confident that you'll develop new skills quickly. Pretty soon you'll feel like an expert, in complete control of your IDE. Don't let Eclipse define you - extend it with the plug-ins you need today for smarter, happier, and more effective development.
Table of Contents (24 chapters)
Eclipse Plug-in Development Beginner's Guide Second Edition
Credits
Foreword
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

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 of the directory:

    jar cf test.jar .
  5. Sign the JAR to verify that it works, by running (all on one line):

    jarsigner 
     -keypass SayK3ys
     -storepass BarC0der
     -keystore /path/to/keystore
     test.jar
     packtpub
  6. Verify the Jar signature by running:

    jarsigner...