Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable OpenSSL legacy providers support #194

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions php-80/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ RUN CFLAGS="" \
--openssldir=${INSTALL_DIR}/bref/ssl \
--release \
enable-tls1_3 \
enable-legacy \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this don’t exist in this one as it OpenSSL 1.1.1w and not 3

no-tests \
shared \
zlib
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions php-81/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ RUN CFLAGS="" \
--openssldir=${INSTALL_DIR}/bref/ssl \
--release \
enable-tls1_3 \
enable-legacy \
no-tests \
shared \
zlib
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions php-82/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ RUN CFLAGS="" \
--openssldir=${INSTALL_DIR}/bref/ssl \
--release \
enable-tls1_3 \
enable-legacy \
no-tests \
shared \
zlib
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions php-83/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ RUN CFLAGS="" \
--openssldir=${INSTALL_DIR}/bref/ssl \
--release \
enable-tls1_3 \
enable-legacy \
no-tests \
shared \
zlib
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions php-84/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ RUN CFLAGS="" \
--openssldir=${INSTALL_DIR}/bref/ssl \
--release \
enable-tls1_3 \
enable-legacy \
no-tests \
shared \
zlib
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down