I cannot get this to work, at all ever, why are things so complicated on this OS, why are things not standard and have commands just work??
$ certbot --nginx-ctl /usr/bin/nginx-mainline
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Error while running /usr/bin/nginx-mainline -c /etc/nginx/nginx.conf -t.
2020/03/03 21:04:45 [emerg] 29910-29910: open() “/etc/nginx/nginx.conf” failed (2: No such file or directory)
nginx: configuration file /etc/nginx/nginx.conf test failed
Certbot doesn’t know how to automatically configure the web server on this system. However, it can still get a certificate for you. Please run “certbot certonly” to do so. You’ll need to manually configure your web server to use the resulting certificate.
$ certbot --nginx-server-root /etc/nginx-mainline
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Certbot doesn’t know how to automatically configure the web server on this system. However, it can still get a certificate for you. Please run “certbot certonly” to do so. You’ll need to manually configure your web server to use the resulting certificate.
I’ve created the certbot config file in /etc/letsencrypt/cli.ini
I searched for hours looking for example config file but nothing shows the info expected for the nginx authenticator
All I want is to have SSL certificates automatically renewed, I’m not an linux expert, i’ve contracted 3 Letsencrypt freelancer experts and none of those guys were able to configure this for me, best that can do is give me instructions to do it manually.
So i’m frustrated having to set calendar events before certification expiry, every 60 days, taking the server offline and perform 4 manual DNS cert renews, running 4 cert bot commands, retrieving the CNAME txt records, logging into my Domain Registrar, pasting those in, waiting to populated and be acknowledged by certbot on the command line again, it almost never works the first time and I waste about 30 minutes with my server offline.
certbot certonly --manual -d *.example.com -d example.com --agree-tos --no-bootstrap --manual-public-ip-logging-ok --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory
There’s a guy on github with and acme.sh shell script, but it doesn’t appear to be any easier.
https://www.cyberciti.biz/faq/how-to-configure-nginx-with-free-lets-encrypt-ssl-certificate-on-debian-or-ubuntu-linux/
Who’s actually even running nginx-mainline on Clear Linux and ever got certbot auto renew to actually work?