mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
fix DHParams (#2301)
This commit is contained in:
parent
574dfee60f
commit
aa95385135
@ -240,7 +240,7 @@ then
|
||||
# Generate DHparams cipher
|
||||
if [ ! -f "$DHPARAMS_SUB" ]
|
||||
then
|
||||
openssl dhparam -dsaparam -out "$DHPARAMS_SUB" 4096
|
||||
openssl dhparam -out "$DHPARAMS_SUB" 2048
|
||||
fi
|
||||
print_text_in_color "$IGreen" "Certs are generated!"
|
||||
a2ensite "$SUBDOMAIN.conf"
|
||||
|
||||
@ -232,7 +232,7 @@ then
|
||||
# Generate DHparams cipher
|
||||
if [ ! -f "$DHPARAMS_SUB" ]
|
||||
then
|
||||
openssl dhparam -dsaparam -out "$DHPARAMS_SUB" 4096
|
||||
openssl dhparam -out "$DHPARAMS_SUB" 2048
|
||||
fi
|
||||
print_text_in_color "$IGreen" "Certs are generated!"
|
||||
a2ensite "$SUBDOMAIN.conf"
|
||||
|
||||
@ -432,7 +432,7 @@ then
|
||||
# Generate DHparams cipher
|
||||
if [ ! -f "$DHPARAMS_SUB" ]
|
||||
then
|
||||
openssl dhparam -dsaparam -out "$DHPARAMS_SUB" 4096
|
||||
openssl dhparam -out "$DHPARAMS_SUB" 2048
|
||||
fi
|
||||
print_text_in_color "$IGreen" "Certs are generated!"
|
||||
a2ensite "$SUBDOMAIN.conf"
|
||||
|
||||
@ -321,7 +321,7 @@ then
|
||||
# Generate DHparams cipher
|
||||
if [ ! -f "$DHPARAMS_SUB" ]
|
||||
then
|
||||
openssl dhparam -dsaparam -out "$DHPARAMS_SUB" 4096
|
||||
openssl dhparam -out "$DHPARAMS_SUB" 2048
|
||||
fi
|
||||
print_text_in_color "$IGreen" "Certs are generated!"
|
||||
a2ensite "$SUBDOMAIN.conf"
|
||||
|
||||
@ -203,7 +203,7 @@ then
|
||||
# Generate DHparams cipher
|
||||
if [ ! -f "$DHPARAMS_SUB" ]
|
||||
then
|
||||
openssl dhparam -dsaparam -out "$DHPARAMS_SUB" 4096
|
||||
openssl dhparam -out "$DHPARAMS_SUB" 2048
|
||||
fi
|
||||
print_text_in_color "$IGreen" "Certs are generated!"
|
||||
a2ensite "$SUBDOMAIN.conf"
|
||||
|
||||
@ -210,7 +210,7 @@ then
|
||||
SSLCertificateChainFile $CERTFILES/$TLSDOMAIN/chain.pem
|
||||
SSLCertificateFile $CERTFILES/$TLSDOMAIN/cert.pem
|
||||
SSLCertificateKeyFile $CERTFILES/$TLSDOMAIN/privkey.pem
|
||||
# SSLOpenSSLConfCmd DHParameters $DHPARAMS_TLS
|
||||
SSLOpenSSLConfCmd DHParameters $DHPARAMS_TLS
|
||||
</VirtualHost>
|
||||
|
||||
### EXTRAS ###
|
||||
@ -238,7 +238,7 @@ then
|
||||
# Generate DHparams cipher
|
||||
if [ ! -f "$DHPARAMS_TLS" ]
|
||||
then
|
||||
openssl dhparam -dsaparam -out "$DHPARAMS_TLS" 4096
|
||||
openssl dhparam -out "$DHPARAMS_TLS" 2048
|
||||
fi
|
||||
# Choose which port for public access
|
||||
msg_box "You will now be able to choose which port you want to put your Nextcloud on for public access.\n
|
||||
@ -298,7 +298,7 @@ else
|
||||
# Generate DHparams cipher
|
||||
if [ ! -f "$DHPARAMS_TLS" ]
|
||||
then
|
||||
openssl dhparam -dsaparam -out "$DHPARAMS_TLS" 4096
|
||||
openssl dhparam -out "$DHPARAMS_TLS" 2048
|
||||
fi
|
||||
# Activate new config
|
||||
check_command bash "$SCRIPTS/test-new-config.sh" "$TLSDOMAIN.conf"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user