diff --git a/php-80/Dockerfile b/php-80/Dockerfile index 11b6a79..184eccf 100644 --- a/php-80/Dockerfile +++ b/php-80/Dockerfile @@ -120,6 +120,7 @@ RUN CFLAGS="" \ --openssldir=${INSTALL_DIR}/bref/ssl \ --release \ enable-tls1_3 \ + enable-legacy \ no-tests \ shared \ zlib @@ -471,6 +472,7 @@ RUN pecl install APCu # Now we copy everything we need for the layers into /bref-layer (which will be used for the real /opt later) RUN mkdir -p /bref-layer/bin \ && mkdir -p /bref-layer/lib \ +&& mkdir -p /bref-layer/lib/ossl-modules \ && mkdir -p /bref-layer/bref/extensions \ && mkdir -p /bref-layer/bref/ssl @@ -498,6 +500,8 @@ RUN cp ${CA_BUNDLE} /bref-layer/bref/ssl/cert.pem # Copy the OpenSSL config RUN cp ${INSTALL_DIR}/bref/ssl/openssl.cnf /bref-layer/bref/ssl/openssl.cnf +# Copy the OpenSSL modules +RUN cp /tmp/build/openssl/providers/legacy.so /bref-layer/lib/ossl-modules/legacy.so # --------------------------------------------------------------- # Start from a clean image to copy only the files we need diff --git a/php-81/Dockerfile b/php-81/Dockerfile index 5405b47..b7d66c6 100644 --- a/php-81/Dockerfile +++ b/php-81/Dockerfile @@ -121,6 +121,7 @@ RUN CFLAGS="" \ --openssldir=${INSTALL_DIR}/bref/ssl \ --release \ enable-tls1_3 \ + enable-legacy \ no-tests \ shared \ zlib @@ -472,6 +473,7 @@ RUN pecl install APCu # Now we copy everything we need for the layers into /bref-layer (which will be used for the real /opt later) RUN mkdir -p /bref-layer/bin \ && mkdir -p /bref-layer/lib \ +&& mkdir -p /bref-layer/lib/ossl-modules \ && mkdir -p /bref-layer/bref/extensions \ && mkdir -p /bref-layer/bref/ssl @@ -499,6 +501,8 @@ RUN cp ${CA_BUNDLE} /bref-layer/bref/ssl/cert.pem # Copy the OpenSSL config RUN cp ${INSTALL_DIR}/bref/ssl/openssl.cnf /bref-layer/bref/ssl/openssl.cnf +# Copy the OpenSSL modules +RUN cp /tmp/build/openssl/providers/legacy.so /bref-layer/lib/ossl-modules/legacy.so # --------------------------------------------------------------- # Start from a clean image to copy only the files we need diff --git a/php-82/Dockerfile b/php-82/Dockerfile index 00a3d5e..5953d74 100644 --- a/php-82/Dockerfile +++ b/php-82/Dockerfile @@ -121,6 +121,7 @@ RUN CFLAGS="" \ --openssldir=${INSTALL_DIR}/bref/ssl \ --release \ enable-tls1_3 \ + enable-legacy \ no-tests \ shared \ zlib @@ -491,6 +492,7 @@ RUN pecl install APCu # Now we copy everything we need for the layers into /bref-layer (which will be used for the real /opt later) RUN mkdir -p /bref-layer/bin \ && mkdir -p /bref-layer/lib \ +&& mkdir -p /bref-layer/lib/ossl-modules \ && mkdir -p /bref-layer/bref/extensions \ && mkdir -p /bref-layer/bref/ssl @@ -518,6 +520,8 @@ RUN cp ${CA_BUNDLE} /bref-layer/bref/ssl/cert.pem # Copy the OpenSSL config RUN cp ${INSTALL_DIR}/bref/ssl/openssl.cnf /bref-layer/bref/ssl/openssl.cnf +# Copy the OpenSSL modules +RUN cp /tmp/build/openssl/providers/legacy.so /bref-layer/lib/ossl-modules/legacy.so # --------------------------------------------------------------- # Start from a clean image to copy only the files we need diff --git a/php-83/Dockerfile b/php-83/Dockerfile index 7173612..d2f8025 100644 --- a/php-83/Dockerfile +++ b/php-83/Dockerfile @@ -121,6 +121,7 @@ RUN CFLAGS="" \ --openssldir=${INSTALL_DIR}/bref/ssl \ --release \ enable-tls1_3 \ + enable-legacy \ no-tests \ shared \ zlib @@ -491,6 +492,7 @@ RUN pecl install APCu # Now we copy everything we need for the layers into /bref-layer (which will be used for the real /opt later) RUN mkdir -p /bref-layer/bin \ && mkdir -p /bref-layer/lib \ +&& mkdir -p /bref-layer/lib/ossl-modules \ && mkdir -p /bref-layer/bref/extensions \ && mkdir -p /bref-layer/bref/ssl @@ -518,6 +520,8 @@ RUN cp ${CA_BUNDLE} /bref-layer/bref/ssl/cert.pem # Copy the OpenSSL config RUN cp ${INSTALL_DIR}/bref/ssl/openssl.cnf /bref-layer/bref/ssl/openssl.cnf +# Copy the OpenSSL modules +RUN cp /tmp/build/openssl/providers/legacy.so /bref-layer/lib/ossl-modules/legacy.so # --------------------------------------------------------------- # Start from a clean image to copy only the files we need diff --git a/php-84/Dockerfile b/php-84/Dockerfile index 8aeafac..f17f050 100644 --- a/php-84/Dockerfile +++ b/php-84/Dockerfile @@ -122,6 +122,7 @@ RUN CFLAGS="" \ --openssldir=${INSTALL_DIR}/bref/ssl \ --release \ enable-tls1_3 \ + enable-legacy \ no-tests \ shared \ zlib @@ -494,6 +495,7 @@ RUN pecl install APCu # Now we copy everything we need for the layers into /bref-layer (which will be used for the real /opt later) RUN mkdir -p /bref-layer/bin \ && mkdir -p /bref-layer/lib \ +&& mkdir -p /bref-layer/lib/ossl-modules \ && mkdir -p /bref-layer/bref/extensions \ && mkdir -p /bref-layer/bref/ssl @@ -521,6 +523,8 @@ RUN cp ${CA_BUNDLE} /bref-layer/bref/ssl/cert.pem # Copy the OpenSSL config RUN cp ${INSTALL_DIR}/bref/ssl/openssl.cnf /bref-layer/bref/ssl/openssl.cnf +# Copy the OpenSSL modules +RUN cp /tmp/build/openssl/providers/legacy.so /bref-layer/lib/ossl-modules/legacy.so # --------------------------------------------------------------- # Start from a clean image to copy only the files we need