Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm preparing a new CentOS Linux server, one of many. When I try to configure SSL on this server, I noticed there is no ssl.conf file. Not in /etc/httpd/conf.d/ssl.conf and not in /etc/httpd/conf/ssl.conf.

I also tried locate ssl.conf and got no result.

Do I need to create it myself? Can I copy the file from the other CentOS server I have? Is it OK to do that?

Centos 6.3(64bit), Apache/2.2.15 (CentOS) , PHP Version 5.3.3, MySQLi 5.1.73

share|improve this question
up vote 7 down vote accepted

You need to install mod_ssl. Run:

sudo yum install mod_ssl

And it will place the default configuration file in /etc/httpd/conf.d/ssl.conf.

If for some reason you have mod_ssl installed, but the file is not there and yum says Nothing to do, try to reinstall with:

sudo yum reinstall mod_ssl
share|improve this answer
Thank you for your quick reply. i did that and it writes "nothing to do" - Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: centos.syn.co.il * extras: centos.syn.co.il * updates: centos.syn.co.il Setting up Install Process Package 1:mod_ssl-2.2.15-47.el6.centos.3.x86_64 already installed and latest version Nothing to do – Rodniko Feb 15 at 14:18
but is still created the file :) (although it wrote "already installed") – Rodniko Feb 15 at 14:41
That's interesting, I just booted 6.3 to check... I removed the file and install did not put it back, but then sudo yum reinstall mod_ssl did. – techraf Feb 15 at 14:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.