Blame SOURCES/0010-Set-all-bits-to-1-in-local-CA-Basic-Constraint-to-se.patch

bda584
From c4b456b2c7515fd896d2806d70f3ebc86c7a85ac Mon Sep 17 00:00:00 2001
bda584
From: Rob Crittenden <rcritten@redhat.com>
bda584
Date: Mon, 5 Mar 2018 10:18:38 -0500
bda584
Subject: [PATCH] Set all bits to 1 in local CA Basic Constraint to set TRUE
bda584
bda584
This was previously using the value of 1 which OpenSSL didn't
bda584
have an issue with but NSS is stricter when it comes to DER
bda584
encoding. Section 11.1 in X.690 requires that DER boolean set
bda584
all bits to 1 to indicate TRUE.
bda584
---
bda584
 src/local.c | 2 +-
bda584
 1 file changed, 1 insertion(+), 1 deletion(-)
bda584
bda584
diff --git a/src/local.c b/src/local.c
bda584
index 8450c9b5..48a9e360 100644
bda584
--- a/src/local.c
bda584
+++ b/src/local.c
bda584
@@ -85,7 +85,7 @@ set_ca_extensions(void *parent, X509_REQ *req, EVP_PKEY *key)
bda584
 	exts = sk_X509_EXTENSION_new(NULL);
bda584
 
bda584
 	memset(&basic, 0, sizeof(basic));
bda584
-	basic.ca = 1;
bda584
+	basic.ca = 255; // set all bits for TRUE
bda584
 	X509V3_add1_i2d(&exts, NID_basic_constraints, &basic, TRUE, 0);
bda584
 
bda584
 	len = i2d_PUBKEY(key, NULL);
bda584
-- 
bda584
2.13.6
bda584