From 448cb11d4ba4d53292dcaff80a3ee58aa1f312f1 Mon Sep 17 00:00:00 2001
From: Sergio Arroutbi
Date: Wed, 7 Sep 2022 11:41:56 +0200
Subject: [PATCH] Fix OpenSSL Intermediate Certificate Chains
Resolves: rhbz#2124849
Signed-off-by: Sergio Arroutbi
---
...102.0-rhbz2124849-extra-ca-files-doc.patch | 25 +
...-8.2102.0-rhbz2124849-extra-ca-files.patch | 682 ++++++++++++++++++
rsyslog.spec | 10 +-
3 files changed, 716 insertions(+), 1 deletion(-)
create mode 100644 rsyslog-8.2102.0-rhbz2124849-extra-ca-files-doc.patch
create mode 100644 rsyslog-8.2102.0-rhbz2124849-extra-ca-files.patch
diff --git a/rsyslog-8.2102.0-rhbz2124849-extra-ca-files-doc.patch b/rsyslog-8.2102.0-rhbz2124849-extra-ca-files-doc.patch
new file mode 100644
index 0000000..5c46529
--- /dev/null
+++ b/rsyslog-8.2102.0-rhbz2124849-extra-ca-files-doc.patch
@@ -0,0 +1,25 @@
+--- rsyslog-8.2102.0/doc/configuration/global/index.html 2021-02-15 12:53:30.000000000 +0100
++++ rsyslog-8.2102.0.backup.doc.202209071236/doc/configuration/global/index.html 2022-09-07 12:33:21.318360707 +0200
+@@ -119,7 +119,14 @@
+ network stream driver to use.
+ Defaults to ptcp.
+
+-$DefaultNetstreamDriverCAFile </path/to/cafile.pem>
++$DefaultNetstreamDriverCAFile </path/to/cafile.pem>
++
++$NetstreamDriverCAExtraFiles </path/to/extracafile.pem> -
++This directive allows to configure multiple additional extra CA files.
++This is intended for SSL certificate chains to work appropriately,
++as the different CA files in the chain need to be specified.
++It must be remarked that this directive only works with the OpenSSL driver.
++
+
+ $DefaultNetstreamDriverCertFile </path/to/certfile.pem>
+
+@@ -311,4 +318,4 @@
+
+