【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.

List of time-related error codes you may encounter

Note: A Your Computer Clock is Wrong error page almost certainly means that your computer's clock is set to the wrong date. Some time-related errors will show a Warning: Potential Security Risk Ahead error page. For other time-related errors, you'll get a Secure Connection Failed or Did Not Connect: Potential Security Issue error page.

 

Click More Information or Advanced…, depending on the error page, Advanced… on the error page to view the error code. One of the following error codes will indicate that the secure connection couldn't be established due to a time-related error:

Note: If you get a Your connection is not secure error page, click the Advanced button to view the error code and other details. A Secure Connection Failed error page may also indicate a time-related error.

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:

  1. Click the Windows Start button or press the Windows key.
  2. In the Start menu, selectSettings.
  3. In Settings, selectTime & language.
  4. In theDate & time section you can review the current date and time settings. To change your settings click on Change below Change date and time or expand the Time zone dropdown menu.
    If your system is set to manage the time and time zone automatically, you cannot make manual changes.
  5. If you are done with your changes, close the Settings window.

If your are on Windows 8:

  1. From the Start Screen, click the Desktop tile. The Desktop view will open.
  2. From the Desktop, hover in the lower right-hand corner to access the Charms.
  3. Select Control Panel from the Settings charm. The Control Panel window will open.
  4. In the Control Panel window, click on Clock, Language, and Region and then Date and Time.
  5. The panel that opens shows the current date and time settings. To change your settings click the Change date and time or Change time zone button.
  6. To confirm your changes click OK.

If your are on Windows 7:

  1. Click the Windows Start button or press the Windows key .
  2. In the Start Menu, click Control Panel.
  3. In the Control Panel window, click on Clock, Language, and Region and then Date and Time.
  4. The panel that opens shows the current date and time settings. To change your settings click the Change date and time or Change time zone button.
  5. To confirm your changes click OK.

If your are on Mac OS:

  1. Click the Apple menu and select System Preferences.
  2. In the System Preferences window, click on Date & Time.
  3. 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 Save to confirm your changes.
  4. 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.
  5. If you are done with your changes, close the Date & Time window.
Note: If the clock on your device constantly resets after you power it off, this might indicate that the battery cell that runs the real-time clock is getting low or is empty. Please consult your manufacturer's manual on how to replace the CMOS battery.

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

Warning: You should never bypass the warning for a legitimate major website or sites where financial transactions take place – in this case an invalid certificate can indicate that your connection is compromised by a third party.

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:

    1. On the warning page, click Advanced.
    2. Click Add Exception…. The Add Security Exception dialog will appear.
    3. Read the text describing the problems with the website. You can click View… to closer inspect the untrusted certificate.
    4. Click Confirm Security Exception if you are sure you want to trust the site.

 


如何排除安全网站上的时间相关错误

安全网站证书(地址以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 上:

  1. 单击"窗口开始"按钮或按"窗口"键。
  2. 在"开始"菜单中,选择"设置"。
  3. 在"设置"中,选择时间和语言。
  4. 日期和时间部分,您可以查看当前日期和时间设置。要更改设置,请单击"更改"下方更改日期和时间或扩展时区下拉菜单。
    如果您的系统设置为自动管理时间和时区,则不能进行手动更改。
  5. 如果完成更改,请关闭"设置"窗口。

如果您在 Windows 8 上:

  1. 从开始屏幕,单击桌面磁贴。桌面视图将打开。
  2. 从桌面,悬停在右下角访问魅力。
  3. 设置的魅力中选择控制面板。控制面板窗口将打开。
  4. 在控制面板窗口中,单击时钟、语言和区域,然后单击日期和时间
  5. 打开的面板显示当前日期和时间设置。要更改设置,请单击更改日期和时间或更改时区按钮。
  6. 要确认您的更改,请单击"确定"。

如果您在 Windows 7 上:

  1. 单击"窗口开始"按钮或按"窗口"键。
  2. 在开始菜单中,单击控制面板。
  3. 在控制面板窗口中,单击时钟、语言和区域,然后单击日期和时间
  4. 打开的面板显示当前日期和时间设置。要更改设置,请单击更改日期和时间或更改时区按钮。
  5. 要确认您的更改,请单击"确定"。

如果您在 Mac 操作系统上:

  1. 单击 Apple 菜单并选择系统首选项。
  2. 在系统首选项窗口中,单击日期和时间
  3. 打开的面板显示当前日期和时间设置。为了调整它们,自动禁用设置日期和时间,手动输入日期和时间,然后单击"保存"以确认您的更改。
  4. 要查看时区设置,请单击时区选项卡。为了调整您的时区,禁用设置时区自动使用当前位置,单击到地图中的近似位置,并在下拉面板中选择最接近您的城市。
  5. 如果您完成更改,请关闭日期和时间窗口。
注意:如果设备上的时钟在关闭电源后不断重置,这可能表示运行实时时钟的电池正在变低或空。请咨询制造商的手册,了解如何更换 CMOS 电池。

联系网站所有者

如果您在安全网站上遇到与时间相关的错误,并且您已经检查了系统时钟的正确设置,请联系无法访问的网站所有者,并告知他们问题。例如,网站所有者可能需要续订过期证书。

绕过警告

警告:您绝不应绕过对合法主要网站或发生财务交易的网站的警告 - 在这种情况下,无效证书可以表明您的连接被第三方损坏。

如果您看到您的连接不是安全的警告页面,并且网站允许这样做,您可以添加一个例外,以便能够访问该网站,尽管默认情况下证书不可信:

    1. 在警告页面上,单击"高级"。
    2. 单击"添加例外"...将显示"添加安全异常"对话。
    3. 阅读描述网站问题的文本。您可以单击"查看"以更仔细地检查未信任的证书。
    4. 如果您确信要信任该网站,请单击"确认安全例外"。
posted @ 2021-10-24 10:52  BearKuma1069  阅读(107)  评论(0)    收藏  举报
编辑推荐:
· Java线程池详解:高效并发编程的核心利器
· 从“看懂世界”到“改造世界”:AI发展的四个阶段你了解了吗?
· 协程本质是函数加状态机——零基础深入浅出 C++20 协程
· 编码之道,道心破碎。
· 记一次 .NET 某发证机系统 崩溃分析
阅读排行:
· 这5种规则引擎,真香!
· 基于.net6的一款开源的低代码、权限、工作流、动态接口平台
· 【好用推荐】免费在线图片压缩工具,附源码
· 纯C#软实现openGL(V0.1),黑盒变白盒
· [开源自荐]AI Chat 智能聊天工具,支持DeepSeek 、Gemini、Grok、OpenA
点击右上角即可分享
微信分享提示