Hello, I would like to understand why I can't generate a certificate. I'm getting the following error:
root@debian:/etc/nginx/sites-available# certbot --nginx -d debian.ccqva.local
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for debian.ccqva.local
An unexpected error occurred:
AttributeError: can't set attribute
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
My domain is: debian.ccqva.local
i tried to update certbot but i keep getting the 2.1.0
I think this is a known bug with 2.1; if the OS's package manager doesn't have a newer version then you'll need to uninstall that version and reinstall certbot via snap or pip.
.local isn't a real domain name, so even if you had certbot working then you wouldn't be able to get a certificate for that name. You can only get publicly-trusted certificates for public names that are in the real public DNS system.
root@debian:/etc/nginx/sites-available# certbot --nginx -d debian.ccqva.local -v
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Requesting a certificate for debian.ccqva.local
An unexpected error occurred:
AttributeError: can't set attribute
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
ans the log file say pretty much the same
root@debian:/etc/nginx/sites-available# tail /var/log/letsencrypt/letsencrypt.log
File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 1733, in main
with make_displayer(config) as displayer:
File "/usr/lib/python3.11/contextlib.py", line 188, in exit
exc.traceback = traceback
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/josepy/util.py", line 191, in setattr
raise AttributeError("can't set attribute")
AttributeError: can't set attribute
2024-06-20 15:38:26,987:ERROR:certbot._internal.log:An unexpected error occurred:
2024-06-20 15:38:26,988:ERROR:certbot._internal.log:AttributeError: can't set attribute