Verifying Jar Signature

Using the example below, I obtained the expected result for a correctly signed JAR (true) and an altered JAR (false). One simple way to trigger the effect for testing is to change one of the digests listed in META-INF/MANIFEST.MF. Note that this approach ignores entries that are not listed in the manifest. Using jarsigner -verify … Read more

How do I unsign a jar?

I don’t know the answer, but here is what I would do: Unzip the jar file or files in question (jars are just zips) Look in the META-INF directory for something that was not MANIFEST-MF. Delete that stuff. Open the MANIFEST-MF and remove stuff that looked like it was signature related. rejar.