3 ms·
That's how it should work but even --standalone still inspects your web server config and will refuse to run if any part of that goes wrong. For example, if you
by acdha 11y ago
That's how it should work but even --standalone still inspects your web server config and will refuse to run if any part of that goes wrong. For example, if you have multiple Apache VirtualHosts in the same file[1] (e.g. a port 80 redirect to the HTTPS site in the same file) any attempt to renew a certificate will fail with an error.
1. https://github.com/certbot/certbot/issues/1042 https://github.com/certbot/certbot/issues/1042
- pfg 11y ago--standalone won't inspect your web server configuration. Only the apache (and nginx, if you enabled it manually) plugin would do that.
- acdha 11y agoAt least for renewals, it does parse Apache config — I was unpleasantly surprised by that last week
- pfg 11y agoMy best guess is that you have previously issued a certificate using the apache plugin on that system, and the renewal config file for that certificate is still there. $ echo "BreakThisConfig" > /etc/apache2/sites-enabled/000-default.conf $ ./certbot-auto --apache 2016-05-16 21:33:31,252:ERROR:certbot.le_util:Error while running apache2ctl configtest. Action 'configtest' failed. The Apache error log may have more information. $ ./certbot-auto certonly --standalone -d example.com - Congratulations! Your certificate and chain have been saved at /etc/letsencrypt/live/example.com/fullchain.pem. $ ./certbot-auto renew --force-renewal Congratulations, all renewals succeeded. The following certs have been renewed: /etc/letsencrypt/live/example.com/fullchain.pem (success)