Amazon EC2 Linux failure to renew

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g., so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:

I ran this command: certbot-auto renew

It produced this output:
Error: couldn’t get currently installed version for /opt/
Traceback (most recent call last):
File “/opt/”, line 7, in
from certbot.main import main
File “/opt/”, line 10, in
import josepy as jose
File “/opt/”, line 44, in
from josepy.interfaces import JSONDeSerializable
File “/opt/”, line 8, in
from josepy import errors, util
File “/opt/”, line 4, in
import OpenSSL
File “/opt/”, line 8, in
from OpenSSL import crypto, SSL
File “/opt/”, line 12, in
from cryptography import x509
ImportError: No module named cryptography

My web server is (include version): Amazon Linux AMI 2018.03

The operating system my web server runs on is (include version):Amazon Linux AMI 2018.03

My hosting provider, if applicable, is: Amazon

I can login to a root shell on my machine (yes or no, or I don’t know): yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): This command fails because of the above - attempts to do an upgrade and cannot find the version

Hi @bwhp

one idea. Try it directly.

sudo mv certbot-auto /usr/local/bin/certbot-auto
sudo chown root /usr/local/bin/certbot-auto
sudo chmod 0755 /usr/local/bin/certbot-auto
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.