2021-09-09 13:20:55 +00:00
|
|
|
From 41df9ae215cee9574e17e6f887c96a7c97d588f5 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Tomas Mraz <tmraz@fedoraproject.org>
|
|
|
|
Date: Thu, 24 Sep 2020 09:03:40 +0200
|
|
|
|
Subject: Use more general default values in openssl.cnf
|
|
|
|
|
|
|
|
Also set sha256 as default hash, although that should not be
|
|
|
|
necessary anymore.
|
|
|
|
|
|
|
|
(was openssl-1.1.1-defaults.patch)
|
|
|
|
---
|
|
|
|
apps/openssl.cnf | 12 +++++++-----
|
|
|
|
1 file changed, 7 insertions(+), 5 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/apps/openssl.cnf b/apps/openssl.cnf
|
|
|
|
index 97567a67be..eb25a0ac48 100644
|
|
|
|
--- a/apps/openssl.cnf
|
|
|
|
+++ b/apps/openssl.cnf
|
|
|
|
@@ -104,7 +104,7 @@ cert_opt = ca_default # Certificate field options
|
2014-02-06 17:07:59 +00:00
|
|
|
|
|
|
|
default_days = 365 # how long to certify for
|
|
|
|
default_crl_days= 30 # how long before next CRL
|
|
|
|
-default_md = default # use public key default MD
|
|
|
|
+default_md = sha256 # use SHA-256 by default
|
|
|
|
preserve = no # keep passed DN ordering
|
|
|
|
|
|
|
|
# A few difference way of specifying how similar the request should look
|
2021-09-09 13:20:55 +00:00
|
|
|
@@ -136,6 +136,7 @@ emailAddress = optional
|
2005-11-08 13:52:29 +00:00
|
|
|
####################################################################
|
|
|
|
[ req ]
|
2015-04-23 11:57:26 +00:00
|
|
|
default_bits = 2048
|
2014-02-06 17:07:59 +00:00
|
|
|
+default_md = sha256
|
2005-11-08 13:52:29 +00:00
|
|
|
default_keyfile = privkey.pem
|
|
|
|
distinguished_name = req_distinguished_name
|
|
|
|
attributes = req_attributes
|
2021-09-09 13:20:55 +00:00
|
|
|
@@ -158,17 +159,18 @@ string_mask = utf8only
|
2005-11-08 13:52:29 +00:00
|
|
|
|
|
|
|
[ req_distinguished_name ]
|
|
|
|
countryName = Country Name (2 letter code)
|
|
|
|
-countryName_default = AU
|
2009-08-20 14:20:57 +00:00
|
|
|
+countryName_default = XX
|
2005-11-08 13:52:29 +00:00
|
|
|
countryName_min = 2
|
|
|
|
countryName_max = 2
|
|
|
|
|
|
|
|
stateOrProvinceName = State or Province Name (full name)
|
|
|
|
-stateOrProvinceName_default = Some-State
|
2009-08-20 14:20:57 +00:00
|
|
|
+#stateOrProvinceName_default = Default Province
|
2005-11-08 13:52:29 +00:00
|
|
|
|
|
|
|
localityName = Locality Name (eg, city)
|
2014-02-06 17:07:59 +00:00
|
|
|
+localityName_default = Default City
|
2005-11-08 13:52:29 +00:00
|
|
|
|
|
|
|
0.organizationName = Organization Name (eg, company)
|
|
|
|
-0.organizationName_default = Internet Widgits Pty Ltd
|
2009-08-20 14:20:57 +00:00
|
|
|
+0.organizationName_default = Default Company Ltd
|
2005-11-08 13:52:29 +00:00
|
|
|
|
|
|
|
# we can do this but it is not needed normally :-)
|
|
|
|
#1.organizationName = Second Organization Name (eg, company)
|
2021-09-09 13:20:55 +00:00
|
|
|
@@ -177,7 +179,7 @@ localityName = Locality Name (eg, city)
|
2005-11-08 13:52:29 +00:00
|
|
|
organizationalUnitName = Organizational Unit Name (eg, section)
|
|
|
|
#organizationalUnitName_default =
|
|
|
|
|
2012-01-05 14:13:25 +00:00
|
|
|
-commonName = Common Name (e.g. server FQDN or YOUR name)
|
2005-11-08 13:52:29 +00:00
|
|
|
+commonName = Common Name (eg, your name or your server\'s hostname)
|
|
|
|
commonName_max = 64
|
|
|
|
|
|
|
|
emailAddress = Email Address
|
2021-09-09 13:20:55 +00:00
|
|
|
--
|
|
|
|
2.26.2
|
|
|
|
|