Skip to content

Instantly share code, notes, and snippets.

@linuxbiekaisar
Created July 5, 2020 03:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linuxbiekaisar/0a54fffd9dc547b72aac2877e5e569a1 to your computer and use it in GitHub Desktop.
Save linuxbiekaisar/0a54fffd9dc547b72aac2877e5e569a1 to your computer and use it in GitHub Desktop.
How to install and configure OpenSSL in any Linux
#!/bin/sh
# To install OpenSSL download the file and extract it
cd /tmp
wget https://www.openssl.org/source/openssl-1.1.1.tar.gz
tar xvf openssl-1.1.1.tar.gz
# After downloading, run the commands below to install
cd openssl-1.1.1
sudo ./config -Wl,--enable-new-dtags,-rpath,'$(LIBRPATH)'
sudo make
sudo make install
# Run the commands below option Ubuntu default man page
sudo nano /etc/manpath.config
# Then add the following highlighted line at the end of the lines as shown below and save it
MANPATH_MAP /usr/local/ssl/bin /usr/local/ssl/man
# Then run the commands below to update the manual database…
sudo mandb
# You can also update the execution path to include the new location for OpenSSL…. run the commands below to open Ubuntu environment configuration file…
sudo nano /etc/environment
# Then add the /usr/local/ssh/bin as shown in the line below and save it
PATH="/usr/local/sbin:/usr/local/bin:/usr/local/ssl/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment