mirror of
https://github.com/joglomedia/LEMPer.git
synced 2026-04-11 23:48:19 +00:00
Remove -dsaparam option from openssl dhparam
This commit is contained in:
@@ -517,8 +517,8 @@ function enable_ssl() {
|
||||
if [ ! -f /etc/nginx/ssl/dhparam-2048.pem ]; then
|
||||
echo "Generating Diffie-Hellman parameters for enhanced HTTPS/SSL security."
|
||||
|
||||
run openssl dhparam -dsaparam -out /etc/nginx/ssl/dhparam-2048.pem 2048
|
||||
#run openssl dhparam -dsaparam -out /etc/nginx/ssl/dhparam-4096.pem 4096
|
||||
run openssl dhparam -out /etc/nginx/ssl/dhparam-2048.pem 2048
|
||||
#run openssl dhparam -out /etc/nginx/ssl/dhparam-4096.pem 4096
|
||||
fi
|
||||
|
||||
# Update vhost config.
|
||||
|
||||
@@ -1487,7 +1487,7 @@ function init_nginx_install() {
|
||||
echo "Enhancing HTTPS/SSL security with DH key..."
|
||||
|
||||
[ ! -d /etc/nginx/ssl ] && mkdir -p /etc/nginx/ssl
|
||||
run openssl dhparam -dsaparam -out "/etc/nginx/ssl/dhparam-${DH_LENGTH}.pem" "${DH_LENGTH}"
|
||||
run openssl dhparam -out "/etc/nginx/ssl/dhparam-${DH_LENGTH}.pem" "${DH_LENGTH}"
|
||||
fi
|
||||
|
||||
# Final test.
|
||||
|
||||
Reference in New Issue
Block a user