Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I unsign a jar?

Is there a way to unsign a java jar file? I have some signed jars I'm trying to use in my development environment, but I get security exceptions, so I want to unsign those jars and I can sign them later when I'm ready to deploy.

like image 685
Jason Avatar asked Oct 13 '11 16:10

Jason


People also ask

How do I unarchive a JAR file?

To unpackage a JAR, you need a program that can extract compressed files. Windows includes functionality for this, but you can also use file extraction software like 7-Zip or WinRAR to get the job done. Open the JAR file within the software, and you can browse all the folders and files within it.

Can a JAR file be edited?

You can use the JAR file editor to view or edit JAR file information that is stored in a data development project. If you make changes to JAR file information using the editor, you must deploy the JAR file to the database server again to apply the changes to the server version of the JAR file.

What is signing a JAR file?

You use the JAR Signing and Verification Tool to sign JAR files and time stamp the signature. You invoke the JAR Signing and Verification Tool by using the jarsigner command, so we'll refer to it as "Jarsigner" for short. To sign a JAR file, you must first have a private key.


1 Answers

I don't know the answer, but here is what I would do:

  1. Unzip the jar file or files in question (jars are just zips)
  2. Look in the META-INF directory for something that was not MANIFEST-MF.
  3. Delete that stuff.
  4. Open the MANIFEST-MF and remove stuff that looked like it was signature related.
  5. rejar.
like image 171
DwB Avatar answered Sep 20 '22 19:09

DwB