OpenSSL: Use %y instead of %Y in VALID_DATETIME_FMT
authorFabian Keil <fk@fabiankeil.de>
Wed, 23 Sep 2020 12:26:56 +0000 (14:26 +0200)
committerFabian Keil <fk@fabiankeil.de>
Sat, 26 Sep 2020 09:16:03 +0000 (11:16 +0200)
commitaff9f77a4df808dadc3c871c170712d8bd1584e6
treefef2ffc540a2af6b38746b83b4103e6e5cf74f63
parent3ef2d6bb7f6b6843937ccfd933e93e31a4139404
OpenSSL: Use %y instead of %Y in VALID_DATETIME_FMT

Otherwise OpenSSL uses the GENERALIZEDTIME ASN.1 encoding
which results in LibreSSL-based clients rejecting
the certificate because they want the UTCTIME encoding
if the year is before 2050.

Example:

    fk@openbsd ~ $curl https://www.electrobsd.org/
    curl: (60) SSL certificate problem: format error in certificate's notBefore field
    [...]
openssl.c