openssl command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
openssl: command not found
or when using sudo you get the following error message
sudo: openssl: command not found
Solutions to openssl: command not found
How To Fix openssl: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu openssl is provided by openssl package.
openssl is:
This package is part of the OpenSSL project’s implementation of the SSL and TLS cryptographic protocols for secure communication over the Internet.
It contains the general-purpose command line binary /usr/bin/openssl, useful for cryptographic operations such as:
- creating RSA, DH, and DSA key parameters;
- creating X.509 certificates, CSRs, and CRLs;
- calculating message digests;
- encrypting and decrypting with ciphers;
- testing SSL/TLS clients and servers;
- handling S/MIME signed or encrypted mail.
To fix this problem, we can install more using the command below.
sudo apt-get -y install openssl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install openssl.
sudo apt -y install openssl
Or if you have aptitude installed you can use the following command.
sudo aptitude install openssl
Summary
In this tutorial we learn how to fix openssl command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.