By krestensb
Hi, I’m trying to renew my SSL certificate on apache running on an ubuntu droplet with certbot. I have followed this tutorial: https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-16-04
I run sudo certbot renew and I get this message:
root@DagensSalg:~# sudo certbot renew Traceback (most recent call last): File “/usr/local/bin/certbot”, line 7, in <module> from certbot.main import main File “/usr/local/lib/python3.5/dist-packages/certbot/main.py”, line 9, in <module> from acme import jose File “/usr/local/lib/python3.5/dist-packages/acme/jose/init.py”, line 37, in <module> from acme.jose.interfaces import JSONDeSerializable File “/usr/local/lib/python3.5/dist-packages/acme/jose/interfaces.py”, line 9, in <module> from acme.jose import util File “/usr/local/lib/python3.5/dist-packages/acme/jose/util.py”, line 5, in <module> import OpenSSL File “/usr/local/lib/python3.5/dist-packages/OpenSSL/init.py”, line 8, in <module> from OpenSSL import crypto, SSL File “/usr/local/lib/python3.5/dist-packages/OpenSSL/SSL.py”, line 115, in <module> if _lib.Cryptography_HAS_SSL_ST: AttributeError: module ‘lib’ has no attribute ‘Cryptography_HAS_SSL_ST’
Any help is very apreciated. Best regards Kresten
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
I had a similar problem in the past and the following fixed the problem for me:
apt remove python3-openssl -y apt autoremove
Make sure that this file: /usr/local/lib/python3.5/dist-packages/OpenSSL/SSL.py was removed.
Then install the package again:
apt install python3-openssl -y
Of course, as always make sure to backup your droplet before making any changes!
Hope that this helps! Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.