Security Developer Center > Security Forums > CAT.NET > Exe is not working after signing with SignTool
Ask a questionAsk a question
 

QuestionExe is not working after signing with SignTool

  • Thursday, September 24, 2009 5:28 AMLaxmilal Menaria Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello everyone,

    I have created a Java application & bundled it in Jar file.
    After that I have create exe with JSmooth & signed it. Its working perfectly fine. But now I want to switch from Jsmooth to Launch4j, this also creating exe like Jsmooth. The exe is working fine, but after signing with Signtool, its shows me error about INVALID Jar, so I think Signtool is not able to sign the exe created by launch4j. So what should I do ?


    Please suggest me, I am using following batch file to sign the exe.

    set File1=LM.exe

    set TimeURL=http://timestamp.comodoca.com/authenticode
    set StorePass=demo111

    signtool.exe sign /f SignCode\LM.p12 /p %StorePass% /v /t %TimeURL% "%File1%"
    signtool.exe verify /v /a  "%File1%"


    Thanks in advance,
    Laxmilal Menaria