Installing OpenSSL

If you use an existing or pre-installed OpenSSL software, skip the first two steps.

  1. Install the necessary dependencies.

›_ Console

dnf -y update && \
    dnf install -y make gcc wget tar git autoconf automake libtool \
    perl-IPC-Cmd perl-core perl-Test-Harness perl-Data-Dumper \
    which findutils diffutils openssl-devel
  1. Install OpenSSL.

›_ Console

# From the SO repository
dnf install openssl
# From the official source
cd /tmp
RUN wget https://www.openssl.org/source/openssl-3.5.0.tar.gz && \
    tar -xzvf openssl-3.5.0.tar.gz && \
    cd openssl-3.5.0 && \
    ./config --prefix=/usr/local/openssl-3.5.0 && \
    make -j$(nproc) && \
    make install && \
    cd ..
  1. Verify the version of OpenSSL.

›_ Console

openssl version
OpenSSL 3.5.0 8 Apr 2025 (Library: OpenSSL 3.5.0 8 Apr 2025)