【问题标题】:Unix SSL certificates dates are 6 hours more than Windows [closed]Unix SSL 证书日期比 Windows 多 6 小时 [关闭]
【发布时间】:2018-01-26 11:01:14
【问题描述】:

当我从中获取所有数据时,我遇到了完全相同的证书的问题。日期的显示方式与 Windows 中的显示方式不同。

在 unix 中我正在执行此命令

 openssl x509 -noout -in ca.crt -dates
 notBefore=Oct 31 00:00:00 2013 GMT
 notAfter=Oct 30 23:59:59 2023 GMT

我在 Windows 中打开完全相同的证书,日期显示如下:

notBefore: ‎Wednesday, ‎October ‎30, ‎2013 6:00:00 PM
notAfter: ‎Monday, ‎October ‎30, ‎2023 5:59:59 PM

如您所见,日期不匹配。

我不确定是否是“GMT”时区或可能是什么问题,你知道问题是什么吗?

哪个日期可能是正确的? Unix 还是 Windows?

【问题讨论】:

    标签: windows date openssl ssl-certificate utc


    【解决方案1】:

    两个都是正确的:

    • openssl 以 UTC 打印日期(也称为/表示为“GMT”)
    • Windows 以系统的时区打印日期(无论您的 Windows 计算机中配置的时区如何)

    我在您的个人资料中看到您来自墨西哥,因此您的 Windows 计算机可能配置了 one of the Mexico's timezones:具体来说,现在比 UTC 晚 6 小时(又名 Central Time Zone)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-17
      • 2014-08-24
      • 2017-12-31
      • 2012-03-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-23
      相关资源
      最近更新 更多