Java Glossary : jarsigner

CMP home Java glossary home Menu no menu Last updated 2004-06-28 by Roedy Green ©1996-2004 Canadian Mind Products

Java definitions: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

You are here : home : Java Glossary : J words : jarsigner.

jarsigner
JDK 1.2 tool for signing jars with DSA or RSA certificates. Replaces javakey. It is the analog of Netscape Signtool. It requires a special Java certificate. A Netscape or Authenticode certificate will not do. jarsigner can sign a JAR file using either: It embeds two files in the jar: In the simplest case all you need is this:

jarsigner.exe theapp.jar phony

where theapp.jar is the name of the previously created jar file with your app in it, and phony is the alias (short name) for the code signing cert you want to use.

Mitch Gallant has written an essay on the differences between signtool and jarsigner. In java 1,2+, you use jar.exe to create the jar and jarsigner.exe to sign it. You will need to use keytool.exe either to help purchase or fake a digital code-signing certificate before you can use jarsigner. Many of the parameters that jarsigner uses are the same as keytool, so you may find that my keytool docs are helpful.

Don't sign jars just for the heck of it. It slows down loading because all the hashes need to be computed, every time the classes in the jar are loaded, even if you are not using the security features.


CMP logo
CMP_home
home
Canadian Mind Products CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[24.87.56.253]
Your IP:[80.134.30.163]
You are visitor number 4368.
Please send errors, omissions and suggestions
to improve this page to Roedy Green.
You can get a fresh copy of this page from: or possibly from your local J: drive mirror:
http://mindprod.com/jgloss/jarsigner.html J:\mindprod\jgloss\jarsigner.html