Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to determine if OpenSSL and mod_ssl are installed on Apache2

Tags:

ssl

apache2

Does anyone know the command to determine if OpenSSL and mod_ssl are installed on Apache2?

like image 605
Fiona Avatar asked Sep 02 '09 12:09

Fiona


People also ask

Does Apache include OpenSSL?

The Apache HTTP Server module mod_ssl provides an interface to the OpenSSL library, which provides Strong Encryption using the Secure Sockets Layer and Transport Layer Security protocols.

What is mod_ssl Apache?

mod_ssl is an optional module for the Apache HTTP Server. It provides strong cryptography for the Apache v1. 3 and v2 webserver via the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) cryptographic protocols by the help of the Open Source SSL/TLS toolkit OpenSSL.

Where is OpenSSL installed Linux?

Find the path to the trusted certificatesOPENSSLDIR: "/var/ssl" (AIX) OPENSSLDIR: "/etc/pki/tls" (RHEL) OPENSSLDIR: "/etc/ssl" (SLES) OPENSSLDIR: "/usr/lib/ssl" (Ubuntu)


2 Answers

If you have PHP installed on your server, you can create a php file, let's called it phpinfo.php and add this <?php echo phpinfo();?>, and open the file in your browser, this shows information about your system environment, to quickly find info about your Apache loaded modules, locate 'Loaded Modules' on the resulting page.

like image 161
mohamed elbou Avatar answered Sep 21 '22 06:09

mohamed elbou


If you have PHP installed on your server, you can chek it in runtime using "extension_loaded" funciontion. Just like this:

<?php if (!extension_loaded('openssl')) {     // no openssl extension loaded. } ?> 
like image 32
user2158343 Avatar answered Sep 23 '22 06:09

user2158343