这个jar文件包含的条目

这个jar文件包含的条目

本文介绍了这个jar文件包含的条目,其签名证书将在六个月内到期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我签我的罐子以不同的方式,但我不断收到上述错误消息时我用命令:

 的jarsigner -verify -verbose [我的罐子]

有没有摆脱这种错误的方法吗?请问我的code只是停止,如果它不重新认证后半年的工作?

下面是用于生成密钥放大器命令的整个集合;签名JAR:

 的keytool -genkey -keystore [密钥库] -alias [别名] -validity 2000
密钥工具-selfcert -keystore [密钥库] -alias [别名] -validity 2000
-keystore的jarsigner [密钥库] [JAR] [别名]


解决方案

It is not an error, but a warning. As to how to avoid it, make sure the certificate has a validity date that is longer than 6 months. For a self-signed certificate, that is a matter of providing the correct parameters when generating the key. Here is the keytool Example.

keytool -genkeypair -dname "cn=Mark Jones, ou=Java, o=Oracle, c=US"
  -alias business -keypass <new password for private key> -keystore /working/mykeystore
  -storepass <new password for keystore> -validity 180

The important part is -validity 180. 180 days, or around 6 months, for that example. Use 1800 for around 6 years.

Not exactly.

  • The user on some systems will be warned that the certificate has expired, and be offered the choice to accept it. If they do, it will work as normal. e.g. of "signature has expired":
  • Other systems might be configured to automatically reject out of date certificates. On those machines, the code will most likely never start, or in rare cases, be loaded but have a sand-box applied.

Applet caching during testing is a big problem. I try to avoid testing applets in the browser until absolutely necessary. There are 3 ways I know of to test applets that will not cache the classes.

  1. AppletViewer
  2. An hybrid applet/application
  3. Appleteer (slightly better than applet viewer in some respects, I developed it a while ago)

这篇关于这个jar文件包含的条目,其签名证书将在六个月内到期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 17:07