Problem with lestencrypt-auto renewal


#1

Hi,
I’ve recently wanted to renewal the SSL certification following this tutorial(beacuse my server is Amazon Linux AMI EC2): https://medium.com/@gnowland/deploying-lets-encrypt-on-an-amazon-linux-ami-ec2-instance-f8e2e8f4fc1f

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!


#2

Hi @dcelonenco

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


#3

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


#4

Please show:

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


#5

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.


#6

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

Start new with certbot-auto:


#7

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


#8

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


closed #9

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