【Web相关】《time-errors》
How to troubleshoot time related errors on secure websites
Certificates for secure websites (the address begins with https://) are valid only for a certain period of time. If a website presents a certificate with validity dates that don't match the date on your computer's clock, Firefox can't verify that it is secure and will show you an error page.
Such issues can often be fixed by setting the correct date, time and time zone on your computer system. If this does not solve the problem, it could be caused by other issues, such as a misconfigured web server or an expired certificate.
Table of Contents
List of time-related error codes you may encounter
Click
One of the following error codes will indicate that the secure connection couldn't be established due to a time-related error:
SEC_ERROR_EXPIRED_CERTIFICATE
SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE
SEC_ERROR_OCSP_FUTURE_RESPONSE
SEC_ERROR_OCSP_OLD_RESPONSE
MOZILLA_PKIX_ERROR_NOT_YET_VALID_CERTIFICATE
MOZILLA_PKIX_ERROR_NOT_YET_VALID_ISSUER_CERTIFICATE
The text on the error page will warn you when Firefox detects that your system date and time is probably wrong and will also show the date and time currently set in your system. If the clock settings are incorrect you should set it to the right time as explained below. Even if the displayed time settings seem to be correct, you should make sure that the time zone settings of your system match your current location.
Set your system clock to the correct time
Time-related errors on secure websites caused by a skewed system clock can be resolved by setting your correct date, time and time zone:. Change your date and time settings from the clock on the Windows taskbar or follow these instructions:
If your are on Windows 10:
- Click the Windows Start button or press the Windows key.
- In the Start menu, select
- In Settings, select
- In the
If your system is set to manage the time and time zone automatically, you cannot make manual changes.
- If you are done with your changes, close the Settings window.
If your are on Windows 8:
- From the Start Screen, click the Desktop tile. The Desktop view will open.
- From the Desktop, hover in the lower right-hand corner to access the Charms.
- Select
- In the Control Panel window, click on Clock, Language, and Region and then Date and Time.
- The panel that opens shows the current date and time settings. To change your settings click the
- To confirm your changes click
If your are on Windows 7:
- Click the Windows Start button or press the Windows key .
- In the Start Menu, click
- In the Control Panel window, click on Clock, Language, and Region and then Date and Time.
- The panel that opens shows the current date and time settings. To change your settings click the
- To confirm your changes click
If your are on Mac OS:
- Click the Apple menu and select
- In the System Preferences window, click on Date & Time.
- The panel that opens shows the current date and time settings. In order to adjust them, disable Set date and time automatically, manually enter the date and time and click
- In order to review your time zone settings, click on the Time Zone tab. In order to adjust your time zone, disable Set time zone automatically using current location, click onto your approximate location in the map and select the city closest to you in the dropdown panel.
- If you are done with your changes, close the Date & Time window.
Contact the website owner
If you get a time related error on a secure website and you have already checked the correct settings of your system’s clock, please contact the owner of the website which you can’t access and inform them of the problem. The website owner might need to renew the expired certificate, for example.
Bypass the warning
If you see a Your connection is not secure warning page and the website allows it, you can add an exception to be able to visit the site, despite the fact that the certificate is not trusted by default:
- On the warning page, click
- Click
- Read the text describing the problems with the website. You can click
- Click
如何排除安全网站上的时间相关错误
安全网站证书(地址以https://开头)仅有效一段时间。如果网站出示的证书的有效日期与计算机时钟上的日期不匹配,Firefox 无法验证其是否安全,并且会向您显示错误页面。
这些问题通常可以通过在计算机系统上设置正确的日期、时间和时区来解决。如果这不能解决问题,则可能是由其他问题引起的,例如 Web 服务器配置错误或证书过期。
您可能遇到的时间相关错误代码列表
单击
以下错误代码之一将表明由于与时间相关的错误而无法建立安全连接:
SEC_ERROR_EXPIRED_CERTIFICATE
SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE
SEC_ERROR_OCSP_FUTURE_RESPONSE
SEC_ERROR_OCSP_OLD_RESPONSE
MOZILLA_PKIX_ERROR_NOT_YET_VALID_CERTIFICATE
MOZILLA_PKIX_ERROR_NOT_YET_VALID_ISSUER_CERTIFICATE
当 Firefox 检测到您的系统日期和时间可能是错误的时,错误页面上的文本会警告您,并且还会显示系统中当前设置的日期和时间。如果时钟设置不正确,您应该将其设置为正确的时间(如下文所述)。即使显示的时间设置似乎是正确的,您也应该确保系统中的时区设置与当前位置相匹配。
将系统时钟设置为正确的时间
由偏斜的系统时钟导致的安全网站上与时间相关的错误可以通过设置正确的日期、时间和时区来解决:。更改Windows 任务栏上的时钟中的日期和时间设置或按照以下说明:
如果您在 Windows 10 上:
- 单击"窗口开始"按钮或按"窗口"键。
- 在"开始"菜单中,选择
- 在"设置"中,选择
- 在
如果您的系统设置为自动管理时间和时区,则不能进行手动更改。
- 如果完成更改,请关闭"设置"窗口。
如果您在 Windows 8 上:
- 从开始屏幕,单击桌面磁贴。桌面视图将打开。
- 从桌面,悬停在右下角访问魅力。
- 从
- 在控制面板窗口中,单击时钟、语言和区域,然后单击日期和时间。
- 打开的面板显示当前日期和时间设置。要更改设置,请单击
- 要确认您的更改,请单击
如果您在 Windows 7 上:
- 单击"窗口开始"按钮或按"窗口"键。
- 在开始菜单中,单击
- 在控制面板窗口中,单击时钟、语言和区域,然后单击日期和时间。
- 打开的面板显示当前日期和时间设置。要更改设置,请单击
- 要确认您的更改,请单击
如果您在 Mac 操作系统上:
- 单击 Apple 菜单并选择
- 在系统首选项窗口中,单击日期和时间。
- 打开的面板显示当前日期和时间设置。为了调整它们,自动禁用设置日期和时间,手动输入日期和时间,然后单击
- 要查看时区设置,请单击时区选项卡。为了调整您的时区,禁用设置时区自动使用当前位置,单击到地图中的近似位置,并在下拉面板中选择最接近您的城市。
- 如果您完成更改,请关闭日期和时间窗口。
联系网站所有者
如果您在安全网站上遇到与时间相关的错误,并且您已经检查了系统时钟的正确设置,请联系无法访问的网站所有者,并告知他们问题。例如,网站所有者可能需要续订过期证书。
绕过警告
如果您看到您的连接不是安全的警告页面,并且网站允许这样做,您可以添加一个例外,以便能够访问该网站,尽管默认情况下证书不可信:
- 在警告页面上,单击
- 单击
- 阅读描述网站问题的文本。您可以单击
- 如果您确信要信任该网站,请单击
【推荐】博客园的心动:当一群程序员决定开源共建一个真诚相亲平台
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】Flutter适配HarmonyOS 5知识地图,实战解析+高频避坑指南
【推荐】开源 Linux 服务器运维管理面板 1Panel V2 版本正式发布
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Java线程池详解:高效并发编程的核心利器
· 从“看懂世界”到“改造世界”:AI发展的四个阶段你了解了吗?
· 协程本质是函数加状态机——零基础深入浅出 C++20 协程
· 编码之道,道心破碎。
· 记一次 .NET 某发证机系统 崩溃分析
· 这5种规则引擎,真香!
· 基于.net6的一款开源的低代码、权限、工作流、动态接口平台
· 【好用推荐】免费在线图片压缩工具,附源码
· 纯C#软实现openGL(V0.1),黑盒变白盒
· [开源自荐]AI Chat 智能聊天工具,支持DeepSeek 、Gemini、Grok、OpenA