[Wed Mar 08 17:33:52.805200 2017] [ssl:warn] [pid 2078] AH01906: 83097a3fb4a3f888bd1458096b0afbbd.f0bf4d6b7a923bc2d848c62f1a39cd8c.acme.invalid:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Wed Mar 08 17:33:52.806021 2017] [ssl:warn] [pid 2078] AH01906: f5533e02d6230020b30e60a86e501b41.beda2077aa4d53322b0ec0f1f06dd3cd.acme.invalid:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Wed Mar 08 17:33:52.806305 2017] [ssl:warn] [pid 2078] AH01906: 2753db1ffc92961c99651576face3e71.1b86adf539a24f6dd23bdc9a869ef659.acme.invalid:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Wed Mar 08 17:33:52.806556 2017] [ssl:warn] [pid 2078] AH01906: eacbcf6b6be785b7f2baeceb05a2fe4a.7f75e04418c36d910e82bcb91625f713.acme.invalid:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[W
This is after I created the tls_sni_01_page directory
Thanks for all the info @cchoc47. It looks like what’s happening is an HTTPS virtual host for another domain is conflicting with the one our Apache plugin setup temporarily to complete the challenge.
Here are all my virtual hosts. The port 80 ones were created via webmin, the ssl ones by letsencrypt. I am also using the letsencrypt certificates with my postfix/dovecot mail server.
Im sharing via dropbox since it seems to want to interpret some of the file as html:
Taking those vhosts exactly as is, replacing the domains and cert/key paths, adding them to a default Apache 2.4.18 install on Ubuntu 16.04, enabling them, and running letsencrypt 0.4.1, I’m able to renew my cert
To be entirely honest, I’m a bit at a loss. You said there no other vhosts on your server correct? Running grep -ir "<VirtualHost" /etc/apache2/ doesn’t come up with any vhost that may have been missed?
I have a workaround for you, but I’d also like to figure out the problem here and created https://github.com/certbot/certbot/issues/4317 to track the issue. The workaround is to run: letsencrypt renew --webroot -w /var/www.backlight. This will temporarily place files in /var/www.backlight for domain validation and then reload Apache to use the new certificate. You can include --force-renewal on the command line to renew your certificates even if they’re not close to expiration.
/etc/apache2/apache2.conf:# If you do not specify an ErrorLog directive within a
/etc/apache2/apache2.conf:# logged here. If you do define an error logfile for a
/etc/apache2/sites-enabled/webmin.1479737821-le-ssl.conf:
/etc/apache2/sites-enabled/webmin.1479737786-le-ssl.conf:
/etc/apache2/sites-enabled/webmin.1479737929-le-ssl.conf:
/etc/apache2/sites-enabled/webmin.1479737898-le-ssl.conf:
/etc/apache2/sites-enabled/webmin.1479737821.conf:
/etc/apache2/sites-enabled/webmin.1479737786.conf:
/etc/apache2/sites-enabled/webmin.1479737898.conf:
/etc/apache2/sites-enabled/webmin.1479737929.conf:
/etc/apache2/sites-available/webmin.1479737821.conf:
/etc/apache2/sites-available/webmin.1479737786.conf:
/etc/apache2/sites-available/000-default.conf.dpkg-dist:<VirtualHost *:80>
/etc/apache2/sites-available/webmin.1479737898.conf:
/etc/apache2/sites-available/webmin.1479737929.conf:
/etc/apache2/sites-available/default-ssl.conf.dpkg-dist:
The only other thing I can think of, other than my mail servers using the certificates, is that the two domains are managed by different DNS, one by Network Solutions and the other by Google domains.
I’m seeing a very mixed collection of different <VirtualHost> sections. Some have a hostname combined with a port, some have just a hostname (but that one isn’t in the “sites-enabled” directory), others have the keyword _default_ combined with a port.
In my experience, this mixing (in this case hostname vs. _default_ isn’t working very well when using the tls-sni-01 challenge.
@bmw: did you correct the hostnames in the <VirtualHost> directives to your situation? I can imagine your local test setup doesn’t work with @cchoc47 s hostnames. Perhaps you’ve modified those which made it work in your situation?
When I initially setup apache it created the default host. I then added the port 80 virtual hosts via webmin and then letsencrypt added the SSL virtual hosts. I don’t recall manually editing any of them but am certainly willing To make changes if necessary.