如何使用 .PFX 文件对 JAR 文件进行签名 [英] How to sign a JAR file using a .PFX file

查看:23
本文介绍了如何使用 .PFX 文件对 JAR 文件进行签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

We sign our .net code with a .PFX cert file. A colleague now needs to use the the same cert to sign a .jar file for a customer.

Can someone point me to a link or an example of how I can do this please?

The jar file will be used on Oracle Web Logic Server running on Solaris.

And, once signed do we need to send out anything other signed jar file?

Thanks.

解决方案

[Link updated thanks to @Ezequiel]

https://support.comodo.com/index.php?/Knowledgebase/Article/View/1207/7/how-to-sign-java-jar-files

Check if you can see the certs

-> keytool -list -v -storetype pkcs12 -keystore file.pfx 

Note the alias.

If it can: -> jarsigner -storetype pkcs12 -keystore file.pfx myjar.jar alias

That's all there is to it.

To verify the signature of the file...

-> jarsigner -verify JAR_FILE 

Where JAR_FILE is the file to be signed.

这篇关于如何使用 .PFX 文件对 JAR 文件进行签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆