I'd like to upgrade my GLPI site from http to https to make it more secure, knowing that my GLPI server is installed on a DEBIAN 12, with LAMP functionality.
When I try to enter this command : sudo certbot --apache --agree-tos --redirect --hsts -d my domain --email email@my domain
I get this error message :
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.
I moved your post to the Help section. You would have been shown the form below had you posted here first. Any answers you provide would be helpful.
That said, I can make a guess. Some early 2.X versions of Certbot had a bug which was fixed in 2.3 (I think). Upgrading to the snap version is best or at least a more current version. See: https://certbot.eff.org
Otherwise, please answer as much as you can from below
====================
Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is:
I ran this command:
It produced this output:
My web server is (include version):
The operating system my web server runs on is (include version):
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don't know):
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
I ran this command:sudo certbot --apache --agree-tos --redirect --hsts -d glpihp.rsl.local --email bachir.azzoug@arsl.eu
It produced this output:
Account registered.
Requesting a certificate for glpihp.rsl.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 web server is (include version): Apache/2.4.59 (Debian)
The operating system my web server runs on is (include version):
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don't know): yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): non
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): certbot 2.1.0
That is not a valid internet domain name. Publicly trusted certificate authorities like Let's Encrypt cannot issue a certificate for an unresolvable private domain.
The local TLD is reserved for private mDNS use and will never be able to obtain a publicly trusted certificate. You will need to use a valid domain name in order to obtain a certificate.
Mike above was right: please upgrade your Certbot to at least 2.3.0: the bug where the AttributeError was masking the actual error from the ACME server was fixed in that version.
See https://certbot.eff.org/ for more info on how to install Certbot on your system using snap (any Debian version in the OS menu works, all the same) for the most recent Certbot version. Alternatively you could use pip in a virtual environment, but that's officially only supported on a best effort basis.