httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Netmail" <>
Subject [users@httpd] R: [users@httpd] How to enable mod_ssl
Date Thu, 22 Nov 2012 13:33:24 GMT
In my Fedora 15 i added the line in the httpd.conf
LoadModule ssl_module modules/

After that I created an Self Signed Wildcard SSL Certificates for test my
vhosts if work it in ssl and work fine !
For create the Self Signed Wildcard SSL Certificates:
Open up your terminal and execute the below commands, replacing with the domain name
mkdir /etc/ssl/
cd /etc/ssl/
openssl genrsa 2048 > host.key
openssl req -new -x509 -nodes -sha1 -days 3650 -key host.key > host.cert
For a wildcard cert enter * for Common Name. ItÂ’s the 6th
option in the dialog. All other options can be left blank for defaults
openssl x509 -noout -fingerprint -text < host.cert >
cat host.cert host.key > host.pem
chmod 400 host.key host.pem

edit virtual hosts adding 3 lines:

SSLEngine On
SSLCertificateFile /etc/ssl/
SSLCertificateKeyFile /etc/ssl/

And change the port in 443.

Thanks to all and I hope my feedback is helpful to others

-----Messaggio originale-----
Da: Ben Johnson [] 
Inviato: mercoledì 21 novembre 2012 18:22
Oggetto: Re: [users@httpd] How to enable mod_ssl

On 11/21/2012 11:59 AM, Netmail wrote:
> Hi
> I want to configure my websites on ssl in my apache 2.2.22 and I read 
> many document but I don't understand many point:
> - in my httpd.conf there aren't the loadmodule mod_ssl and I go to 
> install the mod_ssl via yum install mod_ssl; restart httpd but the 
> line loadmodule mod_ssl there isn't in httpd.conf.. question 1: I have to
add the string?
> Thanks for support.
> Andrea

In many Linux distributions that provide software package management tools,
Apache modules are enabled and disabled using a binary executable file
(program), and not "by hand", e.g., editing a configuration file.
For example, in Debian/Ubuntu, the "a2enmod" and "a2dismod" utilities do the

I assume that you're using RedHat, or some variant thereof, though, and the
procedure there differs. Others may feel free to correct me if I'm wrong,
but on RedHat, CentOS, etc., it is necessary to add a configuration file for
the given module in /etc/httpd/conf.d/. Apache scans all configuration files
in this directory on startup by default.

Have you searched the Internet at all on this subject? There are plenty of
useful resources out there...


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message