java - 签署 Eclipse 插件始终有效

标签 java eclipse eclipse-plugin

我想使用 keytool 对我的插件 jar 进行签名以生成 key 。

我知道有 -validity 选项,但如何设置它以使插件始终有效且永不过期。

谢谢

最佳答案

查看 keytool 文档:

Validity Period : Each certificate is valid only for a limited amount of time. This period is described by a start date and time and an end date and time, and can be as short as a few seconds or almost as long as a century. The validity period chosen depends on a number of factors, such as the strength of the private key used to sign the certificate or the amount one is willing to pay for a certificate. This is the expected period that entities can rely on the public value, if the associated private key has not been compromised.

由此可见,您不可能拥有永不过期的证书。

关于java - 签署 Eclipse 插件始终有效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14184081/

相关文章:

Java 通过引用传递

c++ - Mac - C++ - 创建 file.exe

java - 构建 JAR 时 "launch configuration"的参数

java - 将位于 OSGi Bundle 中的文件转换为 IFile

java - 使用 Java 代码导入 Eclipse 项目

java - FileUtils 在 Eclipse 插件项目中抛出错误

java - 每次从 Git pull 后都必须添加 Selenium jar

java - 更改 PreferenceCheckbox 的框颜色

eclipse - 如何为Eclipse中的所有测试设置环境变量?

java - Android:Error - Case 表达式必须是常量表达式