ImportError: No module named CryptoGraphy, CertBot Error

You are currently viewing 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.

Atiqur Rahman

I am MD. Atiqur Rahman graduated from BUET and is an AWS-certified solutions architect. I have successfully achieved 6 certifications from AWS including Cloud Practitioner, Solutions Architect, SysOps Administrator, and Developer Associate. I have more than 8 years of working experience as a DevOps engineer designing complex SAAS applications.

Leave a Reply