Blame SOURCES/openssl-1.1.1-conf-paths.patch

9b88be
diff -up openssl-1.1.1-pre8/apps/CA.pl.in.conf-paths openssl-1.1.1-pre8/apps/CA.pl.in
9b88be
--- openssl-1.1.1-pre8/apps/CA.pl.in.conf-paths	2018-06-20 16:48:09.000000000 +0200
9b88be
+++ openssl-1.1.1-pre8/apps/CA.pl.in	2018-07-25 17:26:58.388624296 +0200
9b88be
@@ -33,7 +33,7 @@ my $X509 = "$openssl x509";
9b88be
 my $PKCS12 = "$openssl pkcs12";
9b88be
 
9b88be
 # default openssl.cnf file has setup as per the following
9b88be
-my $CATOP = "./demoCA";
9b88be
+my $CATOP = "/etc/pki/CA";
9b88be
 my $CAKEY = "cakey.pem";
9b88be
 my $CAREQ = "careq.pem";
9b88be
 my $CACERT = "cacert.pem";
9b88be
diff -up openssl-1.1.1-pre8/apps/openssl.cnf.conf-paths openssl-1.1.1-pre8/apps/openssl.cnf
9b88be
--- openssl-1.1.1-pre8/apps/openssl.cnf.conf-paths	2018-07-25 17:26:58.378624057 +0200
9b88be
+++ openssl-1.1.1-pre8/apps/openssl.cnf	2018-07-27 13:20:08.198513471 +0200
9b88be
@@ -23,6 +23,22 @@ oid_section		= new_oids
9b88be
 # (Alternatively, use a configuration file that has only
9b88be
 # X.509v3 extensions in its main [= default] section.)
9b88be
 
9b88be
+# Load default TLS policy configuration
9b88be
+
9b88be
+openssl_conf = default_modules
9b88be
+
9b88be
+[ default_modules ]
9b88be
+
9b88be
+ssl_conf = ssl_module
9b88be
+
9b88be
+[ ssl_module ]
9b88be
+
9b88be
+system_default = crypto_policy
9b88be
+
9b88be
+[ crypto_policy ]
9b88be
+
9b88be
+.include = /etc/crypto-policies/back-ends/opensslcnf.config
9b88be
+
9b88be
 [ new_oids ]
9b88be
 
9b88be
 # We can add new OIDs in here for use by 'ca', 'req' and 'ts'.
9b88be
@@ -43,7 +59,7 @@ default_ca	= CA_default		# The default c
9b88be
 ####################################################################
9b88be
 [ CA_default ]
9b88be
 
9b88be
-dir		= ./demoCA		# Where everything is kept
9b88be
+dir		= /etc/pki/CA		# Where everything is kept
9b88be
 certs		= $dir/certs		# Where the issued certs are kept
9b88be
 crl_dir		= $dir/crl		# Where the issued crl are kept
9b88be
 database	= $dir/index.txt	# database index file.
9b88be
@@ -329,7 +345,7 @@ default_tsa = tsa_config1	# the default
9b88be
 [ tsa_config1 ]
9b88be
 
9b88be
 # These are used by the TSA reply generation only.
9b88be
-dir		= ./demoCA		# TSA root directory
9b88be
+dir		= /etc/pki/CA		# TSA root directory
9b88be
 serial		= $dir/tsaserial	# The current serial number (mandatory)
9b88be
 crypto_device	= builtin		# OpenSSL engine to use for signing
9b88be
 signer_cert	= $dir/tsacert.pem 	# The TSA signing certificate