Skip to content

Commit 58a078b

Browse files
authored
MCLOUD-6469: dh key too small when trying to use magento-cloud-docker-tls (#273)
1 parent cf94e24 commit 58a078b

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

images/php/7.2-fpm/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ RUN wget https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendma
5151
&& sudo chmod +x mhsendmail_linux_amd64 \
5252
&& sudo mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail
5353

54+
# Change security level to avoid `dh key too small` error
55+
RUN sed -i 's/SECLEVEL=2/SECLEVEL=1/g' /etc/ssl/openssl.cnf
56+
5457
# Configure the gd library
5558
RUN docker-php-ext-configure \
5659
gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/

images/php/7.3-fpm/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ RUN wget https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendma
4949
&& sudo chmod +x mhsendmail_linux_amd64 \
5050
&& sudo mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail
5151

52+
# Change security level to avoid `dh key too small` error
53+
RUN sed -i 's/SECLEVEL=2/SECLEVEL=1/g' /etc/ssl/openssl.cnf
54+
5255
# Configure the gd library
5356
RUN docker-php-ext-configure \
5457
gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/

images/php/7.4-fpm/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ RUN wget https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendma
4545
&& sudo chmod +x mhsendmail_linux_amd64 \
4646
&& sudo mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail
4747

48+
# Change security level to avoid `dh key too small` error
49+
RUN sed -i 's/SECLEVEL=2/SECLEVEL=1/g' /etc/ssl/openssl.cnf
50+
4851
# Configure the gd library
4952
RUN docker-php-ext-configure \
5053
gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/

images/php/fpm/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ RUN wget https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendma
2424
&& sudo chmod +x mhsendmail_linux_amd64 \
2525
&& sudo mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail
2626

27+
# Change security level to avoid `dh key too small` error
28+
RUN sed -i 's/SECLEVEL=2/SECLEVEL=1/g' /etc/ssl/openssl.cnf
29+
2730
# Configure the gd library
2831
{%docker-php-ext-configure%}
2932

0 commit comments

Comments
 (0)