This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Description
When migrating nginx config files from a vanilla certbot installation I ran into the following problem:
Every line from the previous install had a comment added "# managed by Cerbot"
It seems like the startup script mistakes the # for a (second?) certificate file and as it (predictably) fails to read/find/evaluate it, the .nokey file is never renamed/copied and thus the virtual host remains inactive. In the log:
- echo 'Couldn'''t find keyfile # for /etc/nginx/conf.d/WhatEver.conf.nokey',
I should add that removing the comment did the trick.