gpt4 book ai didi

java - jarsigner带有时间戳但错误响应者的证书不在有效期内

转载 作者:太空宇宙 更新时间:2023-11-04 12:35:08 24 4
gpt4 key购买 nike

我已使用 2017 年 1 月到期的证书时间戳对 jar 进行签名。我将系统时间更改为 2017 年 1 月之后。当我运行下载上述 jar 的小程序时,我收到错误响应者的证书不在有效期内。根据java文档,它说如果jarsigner使用时间戳,即使在证书过期后它也会验证。可能是什么问题?

更新 1:如果我禁用互联网,即使系统日期更改为 2017 年 1 月之后,它也可以正常工作,不会出现错误,但在连接到互联网时则无法正常工作。为什么要访问互联网来验证证书?

最佳答案

来自 @Holger 的好答案在How to check if Java Web Start app will continue working after certificate expires

Reason and workaround

Your exception stacktrace shows that the certificate revocation check using OCSP (Online Certificate Status Protocol) has failed because of the expiration of the OCSP responder's certificate at your test date (not because of your certificate).

To perform the test try to switch certificate revocation checks off in the Java Control Panel.

Also be sure that your certificate has not already been permanently accepted (use "Restore security prompts" in the Java Control Panel).

关于java - jarsigner带有时间戳但错误响应者的证书不在有效期内,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37407963/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com