From 4211f2e22935634e1dac679644941744c610385f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi
Date: Fri, 24 Dec 2021 08:39:41 +0200
Subject: [PATCH 1/1] TlsRequest: Set certificate "valid from" in UTC
src/tlsrequest.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/tlsrequest.c b/src/tlsrequest.c
index 240b618..22fb215 100644
--- a/src/tlsrequest.c
+++ b/src/tlsrequest.c
@@ -333,10 +333,10 @@ iTlsCertificate *newSelfSignedRSA_TlsCertificate(
X509_NAME_free(subject);
}
/* Valid from. */ {
ASN1_TIME *notBefore = ASN1_TIME_new();
ASN1_TIME_set(notBefore, time(NULL));
ASN1_UTCTIME *notBefore = ASN1_UTCTIME_new();
ASN1_UTCTIME_set(notBefore, time(NULL));
X509_set1_notBefore(d->cert, notBefore);
ASN1_TIME_free(notBefore);
ASN1_UTCTIME_free(notBefore);
}
/* Valid until. */ {
ASN1_TIME *notAfter = ASN1_TIME_new();
--
2.25.1
text/plain
This content has been proxied by September (ba2dc).