ImportError: No module named CryptoGraphy, CertBot Error

In this article, I will show how you can solve the certbot renew issue in Amazon Linux 1. In amazon Linux these issues very frequently that, when we try to renew the SSL certificate using Certbot, then we see an error like this.

To solve the issue then please run these commands.

pip install cryptography 
cd /opt/eff.org/certbot/venv/lib64/python2.7 
mv site-packages site-packages.sav 
ln -s dist-packages/ site-packages

After that run your command to create SSL certificate

sudo /home/ec2-user/certbot-auto --debug --apache 

This has worked for me. It will solve your issue as well.

Leave a Comment

Your email address will not be published. Required fields are marked *