Install OpenSSL on Linux/Ubuntu

Install OpenSSL on Linux Ubuntu System

If you want to install OpenSSL on Linux or Linux based distribution operating systems such as Ubuntu, you can do that using apt-get package tool,

First in order to check if OpenSSL is already installed type the command, openssl in the Terminal on any prompt that you are on (Bash, Zsh, Sh, etc.), you will get an error command not found openssl

# openssl
zsh: command not found: openssl
# openssl  
bash: openssl: command not found
# openssl
sh: 1: openssl: not found
How to install OpenSSL:
# sudo apt-get install openssl

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 19 not upgraded.
Need to get 599 kB of archives.
After this operation, 1242 kB of additional disk space will be used.
Get:1 focal-updates/main arm64 openssl arm64 1.1.1f-1ubuntu2.12 [599 kB]
Fetched 599 kB in 2s (288 kB/s)                     
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package openssl.
(Reading database ... 20051 files and directories currently installed.)
Preparing to unpack .../openssl_1.1.1f-1ubuntu2.12_arm64.deb ...
Unpacking openssl (1.1.1f-1ubuntu2.12) ...
Setting up openssl (1.1.1f-1ubuntu2.12) ...
Try Out Code2care Dev Tools:


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.