Error while usinf certbot-auto

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. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:
retex.global
I ran this command:
sudo ./certbot-auto certonly --csr request.csr --webroot -d retex.global -w /data/www --debug
It produced this output:
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 <module>

from certbot.main import main

File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/certbot/main.py”, line 10, in <module>

import josepy as jose

File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/josepy/init.py”, line 44, in <module>

from josepy.interfaces import JSONDeSerializable

File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/josepy/interfaces.py”, line 8, in <module>

from josepy import errors, util

File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/josepy/util.py”, line 4, in <module>

import OpenSSL

File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/OpenSSL/init.py”, line 8, in <module>

from OpenSSL import crypto, SSL

File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/OpenSSL/crypto.py”, line 12, in <module>

from cryptography import x509

ImportError: No module named cryptography
My web server is (include version):
Tomcat
The operating system my web server runs on is (include version):
Amazon Linux AMI 2017.09
My hosting provider, if applicable, is:
AWS
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):
can’t check due to error

Certbot’s support for Amazon Linux 1 and 2 is “experimental”. Unfortunately you can run into issues like this.

You can try some of the workarounds listed on https://github.com/certbot/certbot/issues/2544, or consider using a different ACME client like acme.sh, lego or others from https://letsencrypt.org/docs/client-options/ .

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