SSL Certificate details shows the wrong timezone for the expiry date

RESOLVED DUPLICATE of bug 1351427

Status

()

Core
Security: PSM
RESOLVED DUPLICATE of bug 1351427
6 months ago
6 months ago

People

(Reporter: yufiel, Unassigned)

Tracking

53 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

6 months ago
Created attachment 8862428 [details]
WrongFirefoxCertificateTimezone.png

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0
Build ID: 20170418123818

Steps to reproduce:

1. Have a ssl certificate that expires today (e.g. 15:00 CEST)
2. Look at the ssl cert details in the FF, it shows the same time but as GMT (15:00 GMT)


Actual results:

The browser shows the wrong expiry of the cert.
(not tested: marks the cert to early as invalid)


Expected results:

Use the timesome from the cert or recalculate the expiry datetime correctly.

Updated

6 months ago
Component: Untriaged → Security: PSM
Product: Firefox → Core
Your user-agent indicates you are on Linux. Is that where you saw this? Also, can you attach the certificate in question? Thanks.
Flags: needinfo?(yufiel)
(Reporter)

Comment 2

6 months ago
Created attachment 8862570 [details]
internal-tk.cert
Flags: needinfo?(yufiel)
(Reporter)

Comment 3

6 months ago
Yes, I saw it with a FF 53 on Kbuntu 14.04 and the certificate was deployed on a tomcat 7.0.62.
I attached the certificate.
Ah - I can reproduce this in 53 but not 55. Jorg, I'm assuming this was caused by bug 1301640 but was fixed by something like bug 1351427 possibly - can you confirm?
Flags: needinfo?(jorgk)

Comment 5

6 months ago
Hard to say where this was caused and when it got fixed since there were so many changes in date/time formatting lately. But you're right, those two bugs affected the C++ interface which is used for certificate details.

Note that there is still bug 1355977 comment #5 which shows that the " GMT" as appended in a hard-coded fashion:
http://searchfox.org/mozilla-central/source/security/manager/ssl/nsNSSCertHelper.cpp#1697

Someone should address this together with bug 1355977 if there's anything to address.
Flags: needinfo?(jorgk)
See Also: → bug 1355977
Status: UNCONFIRMED → RESOLVED
Last Resolved: 6 months ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1351427
You need to log in before you can comment on or make changes to this bug.