Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to renew a jar signature?

Warning: The signer certificate has expired.

I get the following when I try to sign with jarsigner, and the output jar doesn't get generated.

How do I renew my jar signature?

like image 600
simpatico Avatar asked Aug 15 '10 23:08

simpatico


People also ask

What is Jar signer?

The jarsigner command uses key and certificate information from a keystore to generate digital signatures for JAR files. A keystore is a database of private keys and their associated X. 509 certificate chains that authenticate the corresponding public keys.

What does signing a jar do?

You can optionally sign a JAR file with your electronic "signature." Users who verify your signature can grant your JAR-bundled software security privileges that it wouldn't ordinarily have. Conversely, you can verify the signatures of signed JAR files that you want to use.


1 Answers

Are you using a self-signed certificate? If so, you just need to use keytool to generate a new certificate, then sign your jar using keysigner.

If you are using a third-party signed certificate (Verisign, Thawte, etc), you'll need to renew your key using their online system (usually the same place you got the original cert).

like image 119
Kevin Lacquement Avatar answered Oct 08 '22 09:10

Kevin Lacquement