Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is:Waitati.com
I ran this command:certbot-auto enhance -d waitati.com --redirect
It produced this output:
Asked me which certificate to use (waitati.com)
Asked me which domain (waitati.com, one choice)
Created redirect file: le-redirect-waitati.com.conf
Rollback checkpoint is empty (no changes made?)
My web server is (include version):
Apache2: Version: 2.4.18-2ubuntu3.14
The operating system my web server runs on is (include version):
Ubuntu 16.04
My hosting provider, if applicable, is: VPS
I can login to a root shell on my machine (yes or no, or I donât know): Yes
Iâm using a control panel to manage my site (no, or provide the name and version of the control panel): No
The version of my client is (e.g. output of certbot --version or certbot-auto --version if youâre using Certbot): certbot 1.0.0
When visiting http://waitati.com I am taken to: /var/www/html/index.html
There is no configuration file with that document root.
I am stumped
$ apachectl -S
AH00526: Syntax error on line 23 of /etc/apache2/sites-enabled/Metiria.nz-le-ssl.conf:
SSLCertificateFile: file '/etc/letsencrypt/live/metiria.nz-0001/fullchain.pem' does not exist or is empty
Action '-S' failed.
The Apache error log may have more information.
I reran certbot-auto for metiria.nz but still getting error.
There are two domains/sites: sharron.nz and whynotcofe.com
Both display /var/www/html/index.html using http and as expected with https
:/etc/apache2/sites-enabled$ grep -Ei âinclude|sslcert|servername|serveralias|virt|listenâ *
Sharron.nz-le-ssl.conf:<VirtualHost *:443>
Sharron.nz-le-ssl.conf: ServerName sharron.nz
Sharron.nz-le-ssl.conf: ServerAlias www.sharron.nz
Sharron.nz-le-ssl.conf: # include a line for only one particular virtual host. For example the
Sharron.nz-le-ssl.conf: #Include conf-available/serve-cgi-bin.conf
Sharron.nz-le-ssl.conf:Include /etc/letsencrypt/options-ssl-apache.conf
Sharron.nz-le-ssl.conf:SSLCertificateFile /etc/letsencrypt/live/sharron.nz-0001/fullchain.pem
Sharron.nz-le-ssl.conf:SSLCertificateKeyFile /etc/letsencrypt/live/sharron.nz-0001/privkey.pem
Sharron.nz-le-ssl.conf:
whynotcofe.com-le-ssl.conf:<VirtualHost *:443>
whynotcofe.com-le-ssl.conf: # The ServerName directive sets the request scheme, hostname and port that
whynotcofe.com-le-ssl.conf: # redirection URLs. In the context of virtual hosts, the ServerName
whynotcofe.com-le-ssl.conf: # match this virtual host. For the default virtual host (this file) this
whynotcofe.com-le-ssl.conf: # However, you must set it for any further virtual host explicitly.
whynotcofe.com-le-ssl.conf: ServerName whynotcofe.com
whynotcofe.com-le-ssl.conf: ServerAlias *.whynotcofe.com
whynotcofe.com-le-ssl.conf: # include a line for only one particular virtual host. For example the
whynotcofe.com-le-ssl.conf: #Include conf-available/serve-cgi-bin.conf
whynotcofe.com-le-ssl.conf:Include /etc/letsencrypt/options-ssl-apache.conf
whynotcofe.com-le-ssl.conf:SSLCertificateFile /etc/letsencrypt/live/whynotcofe.com/fullchain.pem
whynotcofe.com-le-ssl.conf:SSLCertificateKeyFile /etc/letsencrypt/live/whynotcofe.com/privkey.pem
whynotcofe.com-le-ssl.conf:
:/etc/apache2$ grep -Ei âinclude|sslcert|servername|serveralias|virt|listenâ apache2.conf
virtual hosts, and extra configuration directives as flexible as possible, in
* ports.conf is always included from the main configuration file. It is
supposed to determine listening ports for incoming connections which can be
global configuration fragments, or virtual host configurations,
If you do not specify an ErrorLog directive within a
container, error messages relating to that virtual host will be
logged here. If you do define an error logfile for a
Your initial post refers to a name that is not specifically included in your config [perhaps it has been disabled]
The Apache config is âmissingâ some information:
Based on your last post:
you might want to try changing â/metiria.nz-0001/â to â/www.metiria.nz/â in file /etc/apache2/sites-available/Metiria.nz-le-ssl.conf before you re-enable that site.
You need to get it to the point where apachectl -S can run without any errors before proceeding to correct any naming issues.
I would enable all the sites needed, rerun it, look for errors, and correct them all.
Or you will only postpone those problems until you do enable those sites.
[feel free to post here and ask questions if needed]
Methinks what I need to do is delete all the certificates and start again.
I have two domains that require certificates and I am uneasy about laying out my entire config in public trying to track down what is clearly a obscure bug, when I am unlikely to hit rate limits, and even if I do waiting a week for LETSENCRYPT is quicker than this.
So how do I do that?
I could just delete everything in site and hope for the best, but there must be a way to uninstall the certificates sytematically
That is easy to say; but from where Iâm standing it doesnât look that clear and I see no bug.
That logic doesnât align with the failed apachectl -S and ignoring it wonât get it fixed.
If you want to remove a cert, you will have to remove the file that uses the cert first; meaning you have first to disable the ssl enabled files and then delete the cert.
Repeat that process for as many sites and certs as you need to delete.
If that can get a good apachectl -S output, then it may not be a total waste.
You can start from that and build on it step by step and check each step with that command.
That was easy.
I changed the port to 80, deleted the certificate entries from the configuration files, reran certbot-auto and everything is working properly.
I do not think I got very good advice here. Sorry to say that, but I felt micro managed. I understand this is a free service, so this is not much of a complaint (I know it is complaining). I really appreciate the service. I know now that I am on my own with it, that is OK. A price worth paying. Keep up the good work.
Also apachectl -S is still complaining the âfullchain.pemâ file does not exist. Or is empty. It is neither, albeit a link. I examined my configuration file for non printing characters (!) but there were none. So this is a bug in apachectl. That is worth remembering
apachectl -v
Server version: Apache/2.4.18 (Ubuntu)
Server built: 2019-10-08T13:31:25