• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3set -ex
4
5OPENSSL=openssl-1.1.1k
6
7wget -q -O "${OPENSSL}.tar.gz" "https://ossci-linux.s3.amazonaws.com/${OPENSSL}.tar.gz"
8tar xf "${OPENSSL}.tar.gz"
9cd "${OPENSSL}"
10./config --prefix=/opt/openssl -d '-Wl,--enable-new-dtags,-rpath,$(LIBRPATH)'
11# NOTE: openssl install errors out when built with the -j option
12NPROC=$[$(nproc) - 2]
13make -j${NPROC}; make install_sw
14# Link the ssl libraries to the /usr/lib folder.
15sudo ln -s /opt/openssl/lib/lib* /usr/lib
16cd ..
17rm -rf "${OPENSSL}"
18