Certbot Not working with CentOS7 and Nginx

Well found the solution it turns out that the latest version of urllib3 v1.22 was not compatible, I uninstalled urllib3 v1.22 and then installed v1.21.1 Step to install

Check urllib3 version by using command pip freeze

acme==0.19.0
ansible==2.3.1.0
asn1crypto==0.23.0
backports.ssl-match-hostname==3.4.0.2
bcrypt==3.1.4
-e git+https://github.com/frappe/bench@9c150732977a15074f2a2f720c52fb5c5bf6947a#egg=bench
certbot==0.19.0
certbot-nginx==0.19.0
certifi==2017.7.27.1
cffi==1.11.2
chardet==3.0.4
click==6.7
ConfigArgParse==0.11.0
configobj==4.7.2
cryptography==2.1.2
cssselect==1.0.1
decorator==3.4.0
enum34==1.1.6
fail2ban==0.9.7
future==0.16.0
gitdb==0.6.4
GitPython==0.3.2rc1
honcho==1.0.1
idna==2.6
iniparse==0.4
ipaddress==1.0.18
IPy==0.75
Jinja2==2.9.6
kitchen==1.1.1
langtable==0.0.31
lxml==4.1.1
Magic-file-extensions==0.2
MarkupSafe==1.0
meld3==0.6.10
mock==1.0.1
MySQL-python==1.2.5
ndg-httpsclient==0.3.2
paramiko==2.3.1
parsedatetime==1.5
perf==0.1
ply==3.4
policycoreutils-default-encoding==0.1
psutil==5.4.0
pyasn1==0.3.7
pycparser==2.18
pycrypto==2.6.1
pycurl==7.19.0
pygobject==3.22.0
pygpgme==0.3
pyliblzma==0.5.3
PyNaCl==1.1.2
pyOpenSSL==0.13.1
pyparsing==1.5.6
pyRFC3339==1.0
python-augeas==0.5.0
python-crontab==2.2.6
python-dateutil==2.6.1
python-dmidecode==3.12.2
python-linux-procfs==0.4.9
python2-pythondialog==3.3.0
pytz==2016.10
pyudev==0.15
pyxattr==0.5.1
PyYAML==3.12
requests==2.18.4
s3cmd==1.6.1
schedutils==0.4
semantic-version==2.6.0
seobject==0.1
sepolicy==1.1
six==1.9.0
slip==0.4.0
slip.dbus==0.4.0
smmap==0.9.0
supervisor==3.1.4
urlgrabber==3.10
urllib3==1.22
virtualenv==15.1.0
yum-langpacks==0.4.2
yum-metadata-parser==1.1.4
zope.component==4.1.0
zope.event==4.0.3
zope.interface==4.0.5

Uninstall v1.22 of urllib3 by using command pip uninstall urllib3

Now Install urllib3 v1.21.1 by using command pip install -Iv https://github.com/shazow/urllib3/archive/1.21.1.tar.gz

Now the problem is gone.
Just answering my question for future reference for others.

2 Likes