the_Foundation [main]

TlsRequest: Set certificate "valid from" in UTC

=> 4211f2e22935634e1dac679644941744c610385f

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();
Proxy Information
Original URL
gemini://git.skyjake.fi/the_Foundation/main/cdiff/4211f2e22935634e1dac679644941744c610385f
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
227.682491 milliseconds
Gemini-to-HTML Time
0.252351 milliseconds

This content has been proxied by September (ba2dc).