3

I used the following command:

C:\Verisign>signtool sign /v /ac "MSCV-VSClass3.cer"/s  MY /n "ABC Company LTD" /t http://timestamp.verisign.com/scripts/timstamp.dll  TestRun.jar

and I get the following result:

SignTool Error: This file format cannot be signed because it is not recognized.

Can someone help me to resolve this issue? Does VeriSign not support signing jars?

Ruddy
  • 9,795
  • 5
  • 45
  • 66
user1606275
  • 51
  • 2
  • 5

1 Answers1

0

No, signtool doesn't know how to sign JAR files. It knows how to sign a few Microsoft known formats, such as PE, CAB, and MSI - but not JAR.

To sign a JAR file on Windows, use Oracle's jarsigner tool. A verisign certificate will work, you just need to use a different tool that actually does the signing.

vcsjones
  • 138,677
  • 31
  • 291
  • 286
  • Thanks. In my case, I already have a security certificate from VeriSign to sign EXEs. I need to use this certificate with jarsigner. – user1606275 Nov 06 '13 at 15:15
  • @user1606275 the link in the answer I wrote is the best documentation for it I could find. – vcsjones Nov 07 '13 at 14:41