我想使用 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/