|
@@ -1316,7 +1316,7 @@ generarDHParam() {
|
|
|
mkdir "$sslDir" 2>/dev/null
|
|
|
comprobarError $? 5 "$sslDir"
|
|
|
fi
|
|
|
- openssl dhparam -out "$dhParamFile" 2048
|
|
|
+ openssl dhparam -out "$dhParamFile" 2048 >/dev/null 2>&1
|
|
|
comprobarError $? 403
|
|
|
# Configuramos Servidor Web
|
|
|
if [ $apacheOn = true ];then
|
|
@@ -1324,6 +1324,8 @@ generarDHParam() {
|
|
|
apacheConfFile="/etc/$webServerName/apache2.conf"
|
|
|
elif [ $rhelOS = true ];then
|
|
|
apacheConfFile="/etc/$webServerName/conf/httpd.conf"
|
|
|
+ else
|
|
|
+ comprobarError 1 403
|
|
|
fi
|
|
|
echo -en "\n# Set Stronger Diffie-Hellman key exchange\n" >> $apacheConfFile
|
|
|
echo -en "SSLOpenSSLConfCmd DHParameters \"$dhParamFile\"\n" >> $apacheConfFile
|