How to install OpenSSL 1.1.1?
Series - How to Do Stuff
Contents
OpenSSL is a TLS/SSL and crypto library.
Most Linux distributions come packaged with some older version of OpenSSL, but if you need some of newest features (such as support for TLSv1.3), then you’ll need to manually install it.
Install on Linux
These instructions should work for most Debian based distros.
Install the build dependencies:
sudo apt-get -y install build-essential checkinstall git zlib1g-devClone OpenSSL:
git clone --depth 1 --branch OpenSSL_1_1_1g https://github.com/openssl/openssl.gitConfigure it:
cd openssl
./config zlib '-Wl,-rpath,$(LIBRPATH)'Note
The rpath flag is used to set the runtime shared library search path, check the notes about shared libs and non-default install locations.
Build and test:
make
make testInstall it:
sudo make installAnd finally, configure the shared libs:
sudo ldconfig -vIf you run:
openssl versionyou should see the following output:
OpenSSL 1.1.1g 21 Apr 2020Install on macOS
Use brew to install it:
brew install openssl@1.1You might also need to add the binary to the PATH:
echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> ~/.bash_profileVerify the install:
openssl versionThat’s it.