Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 setting up a new web server that hosts a dozen virtual hosts on Ubuntu 12.4 using Apache 2.2.22 with one config file per site. I created all the configuration files all at once and ran a2ensite * to enable them all at once. When I reloaded the configuration it failed and after restarting apache I found the following error message in my error.log:

Oops, no RSA or DSA server certificate found for ''?!

Most of the results for this error message are years old that don't fix the problem or are bugs that have been fixed

share|improve this question


Summary: This error may also occur if you forget the following line in your VirtualHost section:

SSLEngine on
share|improve this answer
up vote 4 down vote accepted

The problem ended up being in a different configuration file than the host that was listed in the error. It was due to the fact that there were duplicate ServerName values in two of the files. I fixed the wrong one and it started back up (bye bye that half an hour) :-) .

To troubleshoot this I disabled all the sites and then enabled a couple at a time until I ran into the problem again.

share|improve this answer

FWIW, I just ran into this issue again, under a different guise.

If you are using wildcard SSL certificates, ensure that the VirtualHost entry for the domain ( is listed before anything else (,, etc).

I tried the one-at-a-time config thing, and everything else ran fine until I added the this one file back in.

Then I twigged on that the config filename was lower alphabetically than the config file with the "primary domain definition". Changed the symlink so that it was placed after the main def and everything worked like a charm.

Example fail listing order:


Working example listing:


HTH someone else :)

share|improve this answer

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.