Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] ((null):0)


#1

I’m not sure this is a letsencrypt issue or an apache2 issue, but while configuring my server I messed something up and now Apache isn’t starting any more.

When I try service apache2 start, I get:

 * Starting web server apache2                                                                                                                                                                              Action 'start' failed.
The Apache error log may have more information.

And tail /var/log/apache2/error.log, gives me:

[ssl:emerg] [pid 28687] AH02240: Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] ((null):0)
[ssl:emerg] [pid 28687] AH02312: Fatal error initialising mod_ssl, exiting.

I tried running letsencrypt-auto --apache again, but that didn’t change anything.

I’m guessing I messed up some of my virutal host or apache2.conf settings, but don’t know where to start looking.


#2

Nevermind. I dissabled the two virtual hosts I made last with a2dissite and now Apache2 is starting.