From: Philipp Hancke Date: Tue, 8 Sep 2020 19:42:38 +0000 (+0200) Subject: [Core] Create x509v3 certificates X-Git-Tag: v1.10.6^2~147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bd59f64406b2f2946491ada9c3c04b0ad738bd7;p=thirdparty%2Ffreeswitch.git [Core] Create x509v3 certificates --- 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);