I tried to follow these instructions: Certbot Instructions | Certbot to get certs but I am having trouble getting certificates on my Mac
My domain is: I don't think this info is relevant yet
I ran this command: sudo certbot certonly --nginx
It produced this output:
Error while running nginx -c /usr/local/etc/nginx/nginx.conf -t.
nginx: [emerg] open() "/usr/local/etc/nginx/nginx.conf" failed (2: No such file or directory)
nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed
The nginx plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError('Error while running nginx -c /usr/local/etc/nginx/nginx.conf -t.\n\nnginx: [emerg] open() "/usr/local/etc/nginx/nginx.conf" failed (2: No such file or directory)\nnginx: configuration file /usr/lo
My web server is (include version): nginx version: nginx/1.21.4
The operating system my web server runs on is (include version): Monterey vs 12.0.1
I can login to a root shell on my machine: yes
The version of my client is: certbot 1.22.0
I assume the issue is that nginx is actually installed here on my Mac: /opt/homebrew/etc/nginx
but certbox keeps looking here instead: /usr/local/etc/nginx
How do I get certbot look in the right location instead? thanks