# Depends on perl

# Exit on error:
set -e

wget https://www.openssl.org/source/old/1.1.1/openssl-1.1.1.tar.gz
tar xf openssl-1.1.1.tar.gz
cd openssl-1.1.1

# --prefix=/usr is required!
./config --prefix=/usr \
    --openssldir=/etc/ssl \
    shared

make -j1

# Install without the documentation:
make install_sw

cd ..
#rm -rf openssl-1.1.1
#rm openssl-1.1.1.tar.gz

exit 0
