-
Notifications
You must be signed in to change notification settings - Fork 0
libssl
gretmn102 edited this page Apr 29, 2024
·
1 revision
This error occurs in Ubuntu 22.04.1 and dotnet sdk 3.1.426.
-
download package
curl -O http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb
-
install
sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb
sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb
cd ~
wget https://www.openssl.org/source/openssl-1.1.1w.tar.gz
wget https://www.openssl.org/source/openssl-1.1.1w.tar.gz.sha256
sudo mkdir /opt/openssl
sudo tar xfvz ~/openssl-1.1.1w.tar.gz --directory /opt/openssl
export LD_LIBRARY_PATH=/opt/openssl/lib
cd /opt/openssl/openssl-1.1.1w
sudo ./config --prefix=/opt/openssl --openssldir=/opt/openssl/ssl
sudo make
sudo make test
sudo make install
current_openssl_version=$(/usr/bin/openssl version | awk '{print $2}')
mv /usr/bin/openssl /usr/bin/openssl-$current_openssl_version
ln -s /usr/local/bin/openssl /usr/bin/openssl
ldconfig
touch /etc/profile.d/openssl.sh
echo '#!/bin/sh' > /etc/profile.d/openssl.sh
echo 'export PATH=/opt/openssl/bin:${PATH}' >> /etc/profile.d/openssl.sh
echo 'export LD_LIBRARY_PATH=/opt/openssl/lib:${LD_LIBRARY_PATH}' >> /etc/profile.d/openssl.sh
chmod +x /etc/profile.d/openssl.sh source /etc/profile.d/openssl.sh
sudo updatedb
openssl version