py-certbot fails, doesn't know where to find nginx.conf

Paul Beard paulbeard at gmail.com
Wed May 2 14:24:26 UTC 2018


Found that my certificates had expired overnight and a little digging turned up why: per hier(1), the conf file is under /usr/local

/usr/local/etc/nginx/nginx.conf

I hate to make a symlink to resolve this if there is a cleaner way: can certbot be directed to look in /usr/local/etc instead of /etc? 

Thanks. 

####

Cert is due for renewal, auto-renewing...
Could not choose appropriate plugin: The requested uto plugin does not appear to be installed
Attempting to renew cert (paulbeard.org) from /usr/local/etc/letsencrypt/renewal/paulbeard.org.conf produced an unexpected error: The requested uto plugin does not appear to be installed. Skipping.
All renewal attempts failed. The following certs could not be renewed:
  /usr/local/etc/letsencrypt/live/paulbeard.org/fullchain.pem (failure)

——————

/usr/local/bin/certbot
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Error while running nginx -c /etc/nginx/nginx.conf -t.

nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory)
nginx: configuration file /etc/nginx/nginx.conf test failed



More information about the freebsd-python mailing list