How to Check mod_ssl version in Linux


check mod_ssl version linux

mod_ssl allows you to set up and manage TLS/SSL encryption on your websites, using Apache web server. However, it is important to know the mod_ssl version to understand what TLS/SSL versions are supported by your server. Here’s how to check mod_ssl version in Linux.

 

How to Check mod_ssl version in Linux

Here are the steps to check mod_ssl version in Linux. We basically search the mod_ssl.so file in Apache’s /modules/ folder to get its version. There are a couple of ways to do it.

Using Strings

You can use the strings in command in Linux to precisely extract the TLS/SSL version from mod_ssl.so file at /usr/lib/apache2/modules/mod_ssl.so

If you haven’t installed strings command in linux, here’s how you can install it first


$ sudo apt-get install binutils

 

Run the following command on terminal:


$ strings mod_ssl.so | egrep '^mod_ssl\/|^OpenSSL '

 

You will see a similar output as shown below:


mod_ssl/2.2.6
OpenSSL 0.9.8f 11 Oct 2007

 

Using grep

You can also use grep command on mod_ssl.so file:


$ grep TLSv1.2 /usr/lib/apache2/modules/mod_ssl.so

 

That’s it! Now you know how to check mod_ssl version in Linux. When you upgrade Apache make sure to upgrade this library too.

About Sreeram Sreenivasan

Sreeram Sreenivasan is the Founder of Ubiq, a business dashboard & reporting platform for small & medium businesses. Ubiq makes it easy to build business dashboards & reports for your business. Try it for free today!