diff --git a/DOC/README.install-openssl-1.1.1 b/DOC/README.install-openssl-1.1.1 new file mode 100644 index 0000000..f018cb0 --- /dev/null +++ b/DOC/README.install-openssl-1.1.1 @@ -0,0 +1,49 @@ +# ---------- +# 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