From d4ec096c0d549d143e8a48237966dfddb7bb783e Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 1 Jan 2024 14:52:46 +0100 Subject: [PATCH] Add file 'README.install-openssl-1.1.1'. --- README.install-openssl-1.1.1 | 50 ++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 README.install-openssl-1.1.1 diff --git a/README.install-openssl-1.1.1 b/README.install-openssl-1.1.1 new file mode 100644 index 0000000..285af35 --- /dev/null +++ b/README.install-openssl-1.1.1 @@ -0,0 +1,50 @@ +# ---------- +# Install openssl version 1.x +# ---------- + + +OPENSSL1_VERSION="1.1.1w" + +_archive_file="openssl-${OPENSSL1_VERSION}.tgz" +_download_url="https://www.openssl.org/source/openssl-${OPENSSL1_VERSION}.tar.gz" + +_src_dir="/usr/local/src/openssl" +_build_dir="${_src_dir}/openssl-${OPENSSL1_VERSION}" +_install_dir="/usr/local/openssl-${OPENSSL1_VERSION}" + + +# Create source directory +# +mkdir -p "$_src_dir" + +# Get source '$_archive_file' .. +# +wget -O "${_src_dir}/$_archive_file" ${_download_url} + +# Unpack archive '$_archive_file'.. +# +cd "$_src_dir" +gunzip < "${_archive_file}" | tar -xf - + + +# Configure openssl +# +cd "$_build_dir" +config_params="--prefix=${_install_dir} --openssldir=${_install_dir}" +./config ${config_params} + + +# Compile openssl +# +make + + +# Install openssl +# +make install + + +# Set symlink /usr/local/openssl -> /usr/local/openssl-${OPENSSL1_VERSION} +# +ln -s openssl-${OPENSSL1_VERSION} /usr/local/openssl-1.1.1 +