wget https://www.openssl.org/source/openssl-1.1.1.tar.gz
tar zxvf openssl-1.1.1.tar.gz
cd openssl-1.1.1
./config --prefix=/usr/local/openssl
make && make install
sudo mv /usr/bin/openssl /usr/bin/openssl.old
sudo ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl
echo"/usr/local/openssl/lib"| sudo tee -a /etc/ld.so.conf
sudo ldconfig
openssl version