Signing Jars

2 Aug

You need to sign jar’s for Web Start to work:

See: http://www.autexier.de/jmau/dev/webstart/

Step 2: sign the jar file
You must sign the jar file in order that people can verify it’s origin (an decide if they trust the application or not). The JDK contains a tool which allows signing of jar file with a certificate. If you don’t have your own certificate, you can use the tool also to build one.

Create new certificate:

keytool -genkey -keystore yourKeystore -alias YourName

You will be prompted several questions. At the end, your personal certificate will be in your keystore “yourKeystore”. You can check it by calling

keytool -list -keystore yourKeystore

Now you can sign the jar file:

jarsigner -keystore yourKeystore test.jar YourName

That’s it. The jar file includes know your signature and people can decide if they trust it.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: