Add DOWNGRADE_OPENSSL_TLS_AND_SECLEVEL Option

This commit is contained in:
Amr Aly committed 2020-09-04 15:18:48 -05:00
1 parent 5465f96267
commit 9875842e02
2 files changed
+13

No files matched your search

+12
View File
@@ -916,6 +916,18 @@ RUN if [ ${INSTALL_XMLRPC} = true ]; then \
docker-php-ext-install xmlrpc \
;fi
###########################################################################
# Downgrade Openssl:
###########################################################################
ARG DOWNGRADE_OPENSSL_TLS_AND_SECLEVEL=false
RUN if [ ${DOWNGRADE_OPENSSL_TLS_AND_SECLEVEL} = true ]; then \
sed -i 's,^\(MinProtocol[ ]*=\).*,\1'TLSv1.2',g' /etc/ssl/openssl.cnf \
&& \
sed -i 's,^\(CipherString[ ]*=\).*,\1'DEFAULT@SECLEVEL=1',g' /etc/ssl/openssl.cnf\
;fi
###########################################################################
# Check PHP version:
###########################################################################