Could not find a version that satisfies the requirement letsencrypt


#1

System: CentOS 6.7
Server: nginx/1.8.0
System has EPEL enabled

I get this error message when I run letsencrypt-auto:
Could not find a version that satisfies the requirement letsencrypt (from versions: )
No matching distribution found for letsencrypt

I have attached an image with the output from the command above. Your help will be appreciated:


#2

So do you have Python2.7 already? You can use this guide to get 2.7.9 (adjust your commands): https://www.digitalocean.com/community/tutorials/how-to-set-up-python-2-7-6-and-3-3-3-on-centos-6-4 Also setuptools can be setup like this: https://pypi.python.org/pypi/setuptools/18.7.1#unix-wget

First delete /root/.local/share/letsencrypt and then re-run.


#3

The system has Python 2.6 as default but there is also Python 2.7 installed (I can run either python or python2.7).

python2.7
Python 2.7.10 (default, May 28 2015, 09:58:55)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2


#4

I solved the problem:
I edited letsencrypt-auto and added ‘–verbose’ in the pip commands. (almost at the bottom)
Then I run letsencrypt-auto --help all . From the output I noticed that it could not access some domain (for pip) using https.

My next thought was, this could be an ssl ca cert problem (In the morning I had tried to get a file from a different domain using wget, and I couldn’t, so I connected the dots here) . I replaced the existing ca bundle certificate with a newer one, with the command below, and that solved the problem:
curl http://curl.haxx.se/ca/cacert.pem -o /etc/pki/tls/certs/ca-bundle.crt