isaacpittman-hitachi / rpms / openssl

Forked from rpms/openssl 2 years ago
Clone

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

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