isaacpittman-hitachi / rpms / openssl

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