Problem with lestencrypt-auto renewal

Hi,
I've recently wanted to renewal the SSL certification following this tutorial(beacuse my server is Amazon Linux AMI EC2): Deploying Let’s Encrypt on an Amazon Linux AMI EC2 Instance | by Gifford Nowland | Medium

When I created the SSL certifications that works fine without any problem, after a couple of months, I got an email that my SSL certificates are expiring soon.
After that, I tried to renew the SSL certifications runing this command line:
/opt/letsencrypt/letsencrypt-auto --no-bootstrap renew

And I get an error with this message below:

Error: couldn't get currently installed version for /opt/eff.org/certbot/venv/bin/letsencrypt:
Traceback (most recent call last):
File "/opt/eff.org/certbot/venv/bin/letsencrypt", line 7, in
from certbot.main import main
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/certbot/main.py", line 10, in
import josepy as jose
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/josepy/init.py", line 44, in
from josepy.interfaces import JSONDeSerializable
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/josepy/interfaces.py", line 8, in
from josepy import errors, util
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/josepy/util.py", line 4, in
import OpenSSL
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/OpenSSL/init.py", line 8, in
from OpenSSL import rand, crypto, SSL
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/OpenSSL/rand.py", line 12, in
from OpenSSL._util import (
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/OpenSSL/_util.py", line 6, in
from cryptography.hazmat.bindings.openssl.binding import Binding
ImportError: No module named cryptography.hazmat.bindings.openssl.binding

Can you let me know how could I fix this issue?
If you have any idea, please help me.

Thanks again everyone!

Hi @dcelonenco

I would try it without the --no-bootstrap - option.

I tried to run the command without “–no-bootstrap” option, and that give me the same error.

Please show:

/opt/letsencrypt/letsencrypt-auto --version
openssl version

Hi, thanks for respons
So, I get also an error, most likely is something wrong with letsencrypt:

Error: couldn't get currently installed version for /opt/eff.org/certbot/venv/bin/letsencrypt:
Traceback (most recent call last):
File "/opt/eff.org/certbot/venv/bin/letsencrypt", line 7, in
from certbot.main import main
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/certbot/main.py", line 10, in
import josepy as jose
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/josepy/init.py", line 44, in
from josepy.interfaces import JSONDeSerializable
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/josepy/interfaces.py", line 8, in
from josepy import errors, util
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/josepy/util.py", line 4, in
import OpenSSL
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/OpenSSL/init.py", line 8, in
from OpenSSL import rand, crypto, SSL
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/OpenSSL/rand.py", line 12, in
from OpenSSL._util import (
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/OpenSSL/_util.py", line 6, in
from cryptography.hazmat.bindings.openssl.binding import Binding
ImportError: No module named cryptography.hazmat.bindings.openssl.binding

What do I need to do? reinstall the letsencrypt?
Do you have any idea? I appreciating for your help.

If you have an installation, but the --version command doesn’t work, your installation is too old.

Start new with certbot-auto:

How could I start with new one on Amazon Linux AMI server?

Click link and choose closest matching setup: https://certbot.eff.org/all-instructions/

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