Web 小程序的 jar 签名问题

发布于 2024-10-08 20:46:52 字数 464 浏览 1 评论 0原文

  1. keytool -genkey -keystore myKeyStore -alias me

  2. keytool -selfcert -keystore myKeyStore -alias me

  3. jarsigner -keystore myKeyStore jarfile.jar me

我正在使用这种方式对 jar 进行签名。 我使用我的 jar 和其他一些库作为库,并且所有库都以这种方式签名,但是,当我打开浏览器时,我收到警告,指出存在已签名和未签名的代码。所以这让我很困惑... :/

http://dl.dropbox.com /u/1430071/images/errormessage.png

  1. keytool -genkey -keystore myKeyStore -alias me

  2. keytool -selfcert -keystore myKeyStore -alias me

  3. jarsigner -keystore myKeyStore jarfile.jar me

I'm using this way to sign jars.
I use my jar and a few more as libraries and all of them are signed this way, still, when I open the browser I get the warning that there is signed and unsigned code. So this is confusing me... :/

http://dl.dropbox.com/u/1430071/images/errormessage.png

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦归所梦 2024-10-15 20:46:52

混合签名和未签名代码,标题为 < 的部分em>在没有混合代码警告的情况下安全地部署签名的应用程序和小程序提供了 Java SE 6 Update 19 及更高版本中可用的两种替代方案。

附录:使用 jarsigner -verbose -verify 查看有关签名详细信息的其他信息。

In the article Mixing Signed and Unsigned Code, the section entitled Deploying Signed Applications and Applets Securely Without a Mixed Code Warning offers two alternatives available in Java SE 6 Update 19 and later.

Addendum: Use jarsigner -verbose -verify to see additional information about signature details.

╰ゝ天使的微笑 2024-10-15 20:46:52

您正在使用自签名证书对代码进行签名。您需要从实际的 CA 获取代码签名证书(费用 $$$),并用它来签署您的代码。

You're signing your code with a self-signed certificate. You need to get a code signing certificate from an actual CA (costs $$$) and sign your code with that instead.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文