# Certbot Let’s encrypt : An unexpected error occurred: AttributeError: can't set attribute

**URL:** <https://www.debian-fr.org/t/certbot-let-s-encrypt-an-unexpected-error-occurred-attributeerror-cant-set-attribute/88514>\
**Category:** Support Debian\
**Created:** [Juillet 11, 2023, 11:59 UTC](https://www.debian-fr.org/t/certbot-let-s-encrypt-an-unexpected-error-occurred-attributeerror-cant-set-attribute/88514 "2023-07-11T23:59:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ignace1972](https://www.debian-fr.org/user_avatar/www.debian-fr.org/ignace1972/32/12214_2.png) [@ignace1972](https://www.debian-fr.org/u/ignace1972)\
**Post date:** [Juillet 11, 2023, 11:59 UTC](https://www.debian-fr.org/t/certbot-let-s-encrypt-an-unexpected-error-occurred-attributeerror-cant-set-attribute/88514/1 "2023-07-11T23:59:41Z")

</div>

Bonjour à toutes et à tous.  
J’essaye d’ajouter un certificat Let’s encrypt pour un sous-domaine avec certbot.  
Ma ligne de commande est la suivante :  
`sudo certbot --nginx --cert-name ignace72.eu -d ignace72.eu -d beta.ignace.eu --key-type ecdsa --elliptic-curve secp384r1`  
Et le message d’erreur :  
Saving debug log to /var/log/letsencrypt/letsencrypt.log

```
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
You are updating certificate ignace72.eu to include new domain(s):
+ beta.ignace.eu

You are also removing previously included domain(s):
(None)

Did you intend to make this change?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(U)pdate certificate/(C)ancel: U
Renewing an existing certificate for ignace72.eu and beta.ignace.eu
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.

```

D’après mes recherches, il y aurait un problème avec Python 3.11.  
(à moins que je me plante complètement)  
Une personne aurait-elle une solution ?  
Je vous remercie par avance.

---

<div class="post-metadata">

**Author:** ![Almtesh](https://www.debian-fr.org/user_avatar/www.debian-fr.org/almtesh/32/10312_2.png) [@Almtesh](https://www.debian-fr.org/u/Almtesh)\
**Post date:** [Juillet 12, 2023, 6:56 UTC](https://www.debian-fr.org/t/certbot-let-s-encrypt-an-unexpected-error-occurred-attributeerror-cant-set-attribute/88514/2 "2023-07-12T06:56:49Z")

</div>

Je ne sais pas si ça a un rapport, mais j’ai eu un souci aussi quand j’ai tenté d’ajouter un sous-domaine. À chaque fois, je supprimais le certificat pour en créer un nouveau avec les sous-domaines que je voulais.  
Depuis, j’ai arrêté de faire comme ça et je créer un certificat différent par sous-domaine, c’est beaucoup plus simple à gérer.

---

<div class="post-metadata">

**Author:** ![ignace1972](https://www.debian-fr.org/user_avatar/www.debian-fr.org/ignace1972/32/12214_2.png) [@ignace1972](https://www.debian-fr.org/u/ignace1972)\
**Post date:** [Juillet 12, 2023, 7:11 UTC](https://www.debian-fr.org/t/certbot-let-s-encrypt-an-unexpected-error-occurred-attributeerror-cant-set-attribute/88514/3 "2023-07-12T07:11:21Z")

</div>

Bonjour, Almtesh.  
Je suis une andouille.  
Pour le sous domaine, j’avais mis` -d beta.ignace.eu` au lieu de `-d beta.ignace72.eu`.  
Désolé pour la boulette.
