简体   繁体   English

Verisign signtool可以在windows环境中签署jar文件吗?

[英]Can Verisign signtool sign jar files in windows enviornment?

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? VeriSign不支持签署罐子吗?

No, signtool doesn't know how to sign JAR files. 不,signtool不知道如何签署JAR文件。 It knows how to sign a few Microsoft known formats, such as PE, CAB, and MSI - but not JAR. 它知道如何签署一些微软已知的格式,如PE,CAB和MSI - 但不是JAR。

To sign a JAR file on Windows, use Oracle's jarsigner tool. 要在Windows上签署JAR文件,请使用Oracle的jarsigner工具。 A verisign certificate will work, you just need to use a different tool that actually does the signing. verisign证书可以使用,您只需要使用实际进行签名的其他工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM