From 7bd59f64406b2f2946491ada9c3c04b0ad738bd7 Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Tue, 8 Sep 2020 21:42:38 +0200 Subject: [PATCH] [Core] Create x509v3 certificates --- src/switch_core_cert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_core_cert.c b/src/switch_core_cert.c index 53cf538f76..f91e7cc0ee 100644 --- a/src/switch_core_cert.c +++ b/src/switch_core_cert.c @@ -392,7 +392,7 @@ static int mkcert(X509 **x509p, EVP_PKEY **pkeyp, int bits, int serial, int days rsa = NULL; - X509_set_version(x, 0); + X509_set_version(x, 2); ASN1_INTEGER_set(X509_get_serialNumber(x), serial); X509_gmtime_adj(X509_get_notBefore(x), -(long)60*60*24*7); X509_gmtime_adj(X509_get_notAfter(x), (long)60*60*24*days);