From 5cd93248ee3879e6b010f449c05fd6690e557b2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Tue, 31 Mar 2020 20:14:30 +0200 Subject: [PATCH] Modified 'Basic Constraints: CA' to FALSE as the cert generated by mysql itself specifies --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index ed8706a11..e34be5fec 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -350,7 +350,7 @@ X509 * generate_x509(EVP_PKEY *pkey, const unsigned char *cn, uint32_t serial, i if (ca_x509) { rc = X509_set_issuer_name(x, X509_get_subject_name(ca_x509)); } else { - X509_EXTENSION* extension = X509V3_EXT_conf_nid(NULL, NULL, NID_basic_constraints, "critical, CA:TRUE"); + X509_EXTENSION* extension = X509V3_EXT_conf_nid(NULL, NULL, NID_basic_constraints, "critical, CA:FALSE"); X509_add_ext(x, extension, -1); rc = X509_set_issuer_name(x, name); }