Blame SOURCES/0012-RHEL-Create-etc-crypto-policies-back-ends-opensslcnf.patch

a7e38b
From c50bb81e40b36a74c15f9bc515a2f04a1eb00673 Mon Sep 17 00:00:00 2001
a7e38b
From: "Richard W.M. Jones" <rjones@redhat.com>
a7e38b
Date: Tue, 29 Jun 2021 15:29:11 +0100
a7e38b
Subject: [PATCH] RHEL: Create /etc/crypto-policies/back-ends/opensslcnf.config
a7e38b
a7e38b
https://bugzilla.redhat.com/show_bug.cgi?id=1977214#c13
a7e38b
---
a7e38b
 appliance/init | 8 ++++++++
a7e38b
 1 file changed, 8 insertions(+)
a7e38b
a7e38b
diff --git a/appliance/init b/appliance/init
a7e38b
index 7076821d2..fe6497b4d 100755
a7e38b
--- a/appliance/init
a7e38b
+++ b/appliance/init
a7e38b
@@ -76,6 +76,14 @@ if ! test -e /etc/mtab; then
a7e38b
   ln -s /proc/mounts /etc/mtab
a7e38b
 fi
a7e38b
 
a7e38b
+# openssl 3 requires /etc/crypto-policies/back-ends/opensslcnf.config
a7e38b
+# to exist, but it is created in a %post script in crypto-policies
a7e38b
+# https://bugzilla.redhat.com/show_bug.cgi?id=1977214#c13
a7e38b
+if ! test -r /etc/crypto-policies/back-ends/opensslcnf.config &&
a7e38b
+     test -f /usr/share/crypto-policies/DEFAULT/opensslcnf.txt; then
a7e38b
+  ln -s /usr/share/crypto-policies/DEFAULT/opensslcnf.txt /etc/crypto-policies/back-ends/opensslcnf.config
a7e38b
+fi
a7e38b
+
a7e38b
 # Static nodes must happen before udev is started.
a7e38b
 
a7e38b
 # Set up kmod static-nodes (RHBZ#1011907).
a7e38b
-- 
a7e38b
2.31.1
a7e38b