Menu Show

How to Sign Code with a Java Code Signing Certificate

Rate this article: 1 Star2 Stars3 Stars4 Stars5 Stars (11 votes, average: 2.45)
Loading...

A quick, simple guide on how to sign Java software

Java is one of the most common program languages in existence. It’s used for a wide range of projects and is designed to have as few dependencies as possible. But one thing Java does depend on is code signing. Code signing helps developers assert their identity to end users and helps end users know whether or not the integrity of the software they’re using remains intact. They are able to create a digital signature for Java code using a Java code signing certificate.

Today, we’re going to look at how to sign .jar or other Java code with a Java code signing certificate.

Sign Code in 2 Steps with a Java Code Signing Certificate! Presto!

1. Open the command prompt and run the following command:

jarsigner -tsa http://timestamp.comodo.com -keystore
c:\path\to\your\keystore.jks -storepass YourPassword 
c:\path\to\your\file.jar YourAlias

2. Unfortunately, there’s no verification that the signing was successful, so you’ll need to run another command to make sure:

jarsigner -verify -verbose -certs c:\path\to\your\file.jar

Provided that everything was successful, the output should look like this:

s = signature was verified

Fin! How easy was that.

What’s that? You NEED to sign .jar with a code signing certificate? Well, my friend, you’ve come to the right place. Take a look at our selection of low-price code signing certificates:

SSL Certificate with Comodo Secure Logo

Save Up 42% On Java Code Signing Certificates

Need to sign your java Code to assure users? We sell all Comodo Java code signing certificates at up to 42% off.

Buy Comodo Java Code Signing Certificate