Executable stops working after code signing

Viewed 35

I have built an executable for a Java application using Launch4J. I am embedding JRE and Uber Jar in the executable. The executable works.

However, after I perform code signing on the executable using signtool, it stops working. Here is the command that I use to sign the executable:

signtool sign /td sha1 /fd sha1 /f my_certificate.pfx /p mypass myexecutable.exe

Here is the error that shows up in a dialog box:

Java Virtual Machine Launcher
Error: Invalid or corrupt jarfile

Why my executable stops working after code signing?

0 Answers
Related