Q: How can I unsign an existing jar file?
A: Follow the steps below to remove a signature from a jar file
-
- Open the jar using WinRar or Winzip (jars are actually zip files)
- Go into the META-INF directory
- Delete all files (*.SF, *.RSA) but keep MANIFEST-MF.
![winrar_manifest](https://kbdeveloper.qoppa.com/wp-content/uploads/2016/07/winrar_manifest.png)
-
- Open the MANIFEST.MF and Remove all entries below the line that reads “Codebase: *” (they are the entries that are signature related, see screenshot.
![Inside MANIFEST.MF files, delete all entries related to class signatures (highlighted in blue)](https://kbdeveloper.qoppa.com/wp-content/uploads/2016/07/InsideManifestFile.png)
- Save and close the MANIFEST.MF file (you will be prompted to update it in the bundle and should respond yes.)