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