From 28e7a0adb0ce80eb723d5f0daf9dc2f2f529b8d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikael=20Ronstr=C3=B6m?= Date: Thu, 26 Dec 2024 01:47:59 +0100 Subject: [PATCH] RONDB-826: Added enable-md2 for building OpenSSL from source --- Dockerfile.oraclelinux9 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile.oraclelinux9 b/Dockerfile.oraclelinux9 index 99c5bce10f7..df19c29c285 100644 --- a/Dockerfile.oraclelinux9 +++ b/Dockerfile.oraclelinux9 @@ -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. ENV OPENSSL_ROOT=/usr/local/ssl ENV OPENSSL_ROOT_DIR=$OPENSSL_ROOT RUN --mount=type=cache,target=$DOWNLOADS_CACHE_DIR \ @@ -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 .. \