[SERVER-45671] Mock OCSP responder time format not recognized by Go Created: 21/Jan/20  Updated: 29/Oct/23  Resolved: 27/Jan/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.3.4

Type: Bug Priority: Major - P3
Reporter: Divjot Arora (Inactive) Assignee: Shreyas Kalyan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by GODRIVER-1467 OCSP Support Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2019-01-27, Security 2020-02-10
Participants:

 Description   

The mock OCSP responder created for drivers OCSP testing uses a time format that the Go OCSP library does not recognize. When parsing the OCSP response, it returns the error:

time did not serialize back to the original value and may be invalid: given "20200121190018.920494Z", but serialized as "20200121190018Z"



 Comments   
Comment by Bernie Hackett [ 29/Jan/20 ]

Same problem in python. It turns out fractional seconds are not allowed, per https://tools.ietf.org/html/rfc5280#section-4.1.2.5.1

Comment by Githook User [ 29/Jan/20 ]

Author:

{'name': 'Shreyas Kalyan', 'username': 'shreyaskalyan', 'email': 'shreyas.kalyan@10gen.com'}

Message: SERVER-45671 Remove pcap file

delete mode 100644 out.pcap
Branch: master
https://github.com/mongodb/mongo/commit/025db3aa92df9e4bb9ec12f95dae92a465e4f646

Comment by Githook User [ 27/Jan/20 ]

Author:

{'email': 'shreyas.kalyan@10gen.com', 'username': 'shreyaskalyan', 'name': 'Shreyas Kalyan'}

Message: SERVER-45671 Fix ASN1 Generalized Time Format for Mock OCSP Responder

create mode 100644 out.pcap
Branch: master
https://github.com/mongodb/mongo/commit/960e71f038a268cff71f52eb6b16e6f020a7840c

Generated at Thu Feb 08 05:09:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.