saprasad / rpms / openssl

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