aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@gmail.com>2020-12-20 11:51:25 +0100
committerGuillaume Rousse <guillomovitch@gmail.com>2020-12-20 11:51:25 +0100
commitc15d2f1e5e3cc6488b8d1415f463485d9eccfd43 (patch)
tree9cee39df0b6e8a581ca9648b5d1d8da979000625
parent344e8fcf311f269c51910088538e044926564afd (diff)
downloadrpm-helper-c15d2f1e5e3cc6488b8d1415f463485d9eccfd43.tar
rpm-helper-c15d2f1e5e3cc6488b8d1415f463485d9eccfd43.tar.gz
rpm-helper-c15d2f1e5e3cc6488b8d1415f463485d9eccfd43.tar.bz2
rpm-helper-c15d2f1e5e3cc6488b8d1415f463485d9eccfd43.tar.xz
rpm-helper-c15d2f1e5e3cc6488b8d1415f463485d9eccfd43.zip
revert default key length for SSL certificates 2048 bits
-rwxr-xr-xcreate-ssl-certificate2
-rw-r--r--ssl2
2 files changed, 2 insertions, 2 deletions
diff --git a/create-ssl-certificate b/create-ssl-certificate
index 398470a..a0d7352 100755
--- a/create-ssl-certificate
+++ b/create-ssl-certificate
@@ -22,7 +22,7 @@ fi
if [ ! -f "/etc/pki/tls/private/$srv.pem" ]; then
# default values
host=$(hostname)
- KEY_LENGTH=4096
+ KEY_LENGTH=2048
CERT_DAYS=365
EMAIL_ADDRESS=root@$host
COMMON_NAME=$host
diff --git a/ssl b/ssl
index 376cb90..9df9ae7 100644
--- a/ssl
+++ b/ssl
@@ -1,7 +1,7 @@
# configuration file for create-ssl-certificate rpm scriptlet
# key length
-KEY_LENGTH=4096
+KEY_LENGTH=2048
# certificate duration
CERT_DAYS=365