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

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