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

RONDB-826: Added enable-md2 for building OpenSSL from source #612

Merged
merged 1 commit into from
Jan 7, 2025
Merged
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: 3 additions & 1 deletion Dockerfile.oraclelinux9
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ RUN mkdir $DOWNLOADS_CACHE_DIR
# it in $OPENSSL_ROOT. We will not overwrite the system's OpenSSL library,
# but just install the specified version.
# Commands are from https://linuxpip.org/install-openssl-linux/
# enable-md2 is required in Rocky Linux 9, so should be used here,
# some parts of the code in new REST server uses deprecated SSL features.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps then we should remove that usage rather than require a special and insecure build of OpenSSL?

ENV OPENSSL_ROOT=/usr/local/ssl
ENV OPENSSL_ROOT_DIR=$OPENSSL_ROOT
RUN --mount=type=cache,target=$DOWNLOADS_CACHE_DIR \
Expand All @@ -84,7 +86,7 @@ RUN --mount=type=cache,target=$DOWNLOADS_CACHE_DIR \
&& tar xf $DOWNLOADS_CACHE_DIR/openssl-${OPEN_SSL_VERSION}.tar.gz -C . \
&& cd openssl-${OPEN_SSL_VERSION} \
&& source scl_source enable gcc-toolset-12 \
&& ./config --prefix=$OPENSSL_ROOT --openssldir=$OPENSSL_ROOT shared zlib \
&& ./config --prefix=$OPENSSL_ROOT --openssldir=$OPENSSL_ROOT enable-md2 shared zlib \
&& make -j$THREADS_ARG \
&& make install \
&& cd .. \
Expand Down