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
NOTE: These instructions should work for most Debian based distros.
Install the build dependencies:
sudo apt-get -y install build-essential checkinstall git zlib1g-dev
git clone --depth 1 --branch OpenSSL_1_1_1g https://github.com/openssl/openssl.git
cd openssl ./config zlib '-Wl,-rpath,$(LIBRPATH)'
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 test
sudo make install
And finally, configure the shared libs:
sudo ldconfig -v
If you run:
you should see the following output:
OpenSSL 1.1.1g 21 Apr 2020
Install on macOS
Use brew to install it:
brew install email@example.com
You might also need to add the binary to the
echo 'export PATH="/firstname.lastname@example.org/bin:$PATH"' >> ~/.bash_profile
Verify the install: