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., 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:
sudo ./certbot-auto certonly --csr request.csr --webroot -d -w /data/www --debug
It produced this output:
Error: couldn’t get currently installed version for /opt/

Traceback (most recent call last):

File “/opt/”, line 7, in <module>

from certbot.main import main

File “/opt/”, line 10, in <module>

import josepy as jose

File “/opt/”, line 44, in <module>

from josepy.interfaces import JSONDeSerializable

File “/opt/”, line 8, in <module>

from josepy import errors, util

File “/opt/”, line 4, in <module>

import OpenSSL

File “/opt/”, line 8, in <module>

from OpenSSL import crypto, SSL

File “/opt/”, line 12, in <module>

from cryptography import x509

ImportError: No module named cryptography
My web server is (include version):
The operating system my web server runs on is (include version):
Amazon Linux AMI 2017.09
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don’t know):
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
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, or consider using a different ACME client like, lego or others from .

closed #3

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