Last active
June 20, 2024 21:16
-
-
Save ph4ge/f8ceec94b378c4f6f99820c7d06e51c2 to your computer and use it in GitHub Desktop.
Debian 12/bookwork - install openssl 1.1.1 from source
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Openssl 1.1.x on GNU/Debian 12 | |
============================== | |
The following shows how to install openssl branch 1.1.x alongside debian default libssl3. | |
Some applications require to have: | |
- libssl.so.1.1 | |
- libcrypto.so.1.1 | |
Using the following allows one to not tamper with the system's default/setup, | |
---- | |
Install openssl 1.1.x version from source: | |
Select a version from: | |
https://www.openssl.org/source/old/1.1.1/index.html | |
# download source code and check integrity | |
wget https://www.openssl.org/source/openssl-1.1.1t.tar.gz | |
# create hosting directory under /opt | |
sudo mkdir -p /opt/openssl | |
sudo tar xfv openssl-1.1.1t.tar.gz -C /opt/openssl | |
# temporarily expose ld_library env for building | |
export LD_LIBRARY_PATH=/opt/openssl/lib | |
cd /opt/openssl/openssl-1.1.1t/ | |
# config, build, test and install | |
sudo ./config --prefix=/opt/openssl --openssldir=/opt/openssl/ssl | |
sudo make && sudo make test && sudo make install | |
# to avoid conflict, make symlinks into distro default lib dir | |
sudo ln -s /opt/openssl/lib/libssl.so.1.1 /usr/lib/x86_64-linux-gnu/libssl.so.1.1 | |
sudo ln -s /opt/openssl/lib/libcrypto.so.1.1 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 | |
sudo ldconfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment