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

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

问题描述

我们使用.PFX cert文件签名我们的.net代码。同事现在需要使用相同的证书为客户签署.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?

此jar文件将用于在Solaris上运行的Oracle Web Logic Server上。

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

一旦签名,我们需要发送任何其他签名的jar文件?

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

谢谢。

推荐答案

从这里开始:

https://support.comodo.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=1072

检查您是否可以看到证书

Check if you can see the certs

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

请注意别名。

如果可以:
- > jarsigner -storetype pkcs12 -keystore file.pfx myjar.jar别名

这是所有的东西。

要验证文件的签名...

To verify the signature of the file...

-> jarsigner -verify JAR_FILE 

其中JAR_FILE是要签名的文件。

Where JAR_FILE is the file to be signed.

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

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