AttributeError: ‘module’ object has no attribute ‘pyopenssl’

Al ir a actualizar el certificado SSL gratuito Let´s Encrypt he observado que se me reproduce el error: AttributeError: ‘module’ object has no attribute ‘pyopenssl’

En mi caso, el certificado Let´s Encrypt lo tengo instalado a través de la herramienta certbot en un servidor con Centos 7

Para solventar este error he realizado los siguientes pasos:

Desinstalar e instalar el módulo de phyton request:

pip uninstall requests
yum reinstall python-requests

Desinstalar e instalar el módulo de phyton six:

pip uninstall six
yum reinstall python-six

Desinstalar e instalar el módulo fr phyton urllib3:

pip uninstall urllib3
yum reinstall python-urllib3

Desinstalar certbot:

pip uninstall certbot

Desinstalar pyopenssl:

pip uninstall pyopenssl

Instalar letsencrypt:

pip install letsencrypt

Tras realizar estos, volvemos a ejecutar el comando cert renew para revonar el certificado, y ya no se reproduce el error y el certificado se renueva correctamente:

[root@li417-86 ~]# certbot renew
Saving debug log to /var/log/letsencrypt/letsencrypt.log

Processing /etc/letsencrypt/renewal/javierandres.es.conf

Cert is due for renewal, auto-renewing…
Plugins selected: Authenticator apache, Installer apache
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Renewing an existing certificate
Performing the following challenges:
tls-sni-01 challenge for javierandres.es
TLS-SNI-01 is deprecated, and will stop working soon.
Waiting for verification…
Cleaning up challenges
Resetting dropped connection: acme-v02.api.letsencrypt.org

new certificate deployed with reload of apache server; fullchain is
/etc/letsencrypt/live/javierandres.es/fullchain.pem


Congratulations, all renewals succeeded. The following certs have been renewed:
/etc/letsencrypt/live/javierandres.es/fullchain.pem (success)

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.