Verify or Install OpenSSL

Updated 4 days ago by James Dunn

OpenSSL is used to generate the key file and CSR for your certificate. This is a common package and is available on all of the major Linux distributions through their package installers. You will also be able to find installers for MAC and Windows. This tutorial outlines the step with Linux.

To check whether it is installed on a system that uses yum (such as CentOS or Red Hat Enterprise Linux), run the following command.

rpm -qa | grep -i openssl

The preceding command should return the following or similar packages:

openssl-1.0.1e-48.el6_8.1.x86_64
openssl-devel-1.0.1e-48.el6_8.1.x86_64
openssl-1.0.1e-48.el6_8.1.i686

If these packages are not returned, install OpenSSL by running the following command:

yum install openssl openssl-devel

To check whether OpenSSL is installed in a Debian or Ubuntu system, run the following command:

dpkg -l |grep openssl

You should receive the following output.

ii  libgnutls-openssl27:amd64           2.12.23-12ubuntu2.4              amd64        GNU TLS library - OpenSSL wrapper
ii openssl 1.0.1f-1ubuntu2.16 amd64 Secure Sockets Layer toolkit - cryptographic utility

If you don’t see the expected output, install OpenSSL, run the following command:

apt-get install openssl


How Did We Do?