Certbot openssl error in centOS 7

My domain is: chadura.com

I ran this command: certbot renew

certbot 0.25.1-1.el7
pyOpenSSL==18.0.0

It produced this output:

Traceback (most recent call last):
File “/bin/certbot”, line 9, in
load_entry_point(‘certbot==0.25.1’, ‘console_scripts’, ‘certbot’)()
File “/usr/lib/python2.7/site-packages/pkg_resources.py”, line 378, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File “/usr/lib/python2.7/site-packages/pkg_resources.py”, line 2566, in load_entry_point
return ep.load()
File “/usr/lib/python2.7/site-packages/pkg_resources.py”, line 2260, in load
entry = import(self.module_name, globals(),globals(), [‘name’])
File “/usr/lib/python2.7/site-packages/certbot/main.py”, line 21, in
from certbot import client
File “/usr/lib/python2.7/site-packages/certbot/client.py”, line 16, in
from acme import client as acme_client
File “/usr/lib/python2.7/site-packages/acme/client.py”, line 39, in
urllib3.contrib.pyopenssl.inject_into_urllib3()
AttributeError: ‘module’ object has no attribute ‘pyopenssl’

My web server is :
nginx version: nginx/1.12.2
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC)
built with OpenSSL 1.0.2k-fips 26 Jan 2017

The operating system my web server runs on is :
CentOS Linux release 7.5.1804 (Core)

I can login to a root shell on my machine:
yes

I have also tried changin the pyopenssl, cryptograhy and python versions. No luck.

Have you tried updating/reinstalling urllib3?

urllib3 (1.23)               - HTTP library with thread-safe connection pooling, file post, and more.
  INSTALLED: 1.22
  LATEST:    1.23

sudo pip install urllib3==1.23

certbot renew

Traceback (most recent call last):
  File "/usr/bin/certbot", line 9, in <module>
    load_entry_point('certbot==0.25.1', 'console_scripts', 'certbot')()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.7/site-packages/certbot/main.py", line 21, in <module>
    from certbot import client
  File "/usr/lib/python2.7/site-packages/certbot/client.py", line 16, in <module>
    from acme import client as acme_client
  File "/usr/lib/python2.7/site-packages/acme/client.py", line 39, in <module>
    urllib3.contrib.pyopenssl.inject_into_urllib3()
AttributeError: 'module' object has no attribute 'pyopenssl'

I have even tried re-installing all the packages installed along with certbot. No luck yet! it’s my production server, kind of frustrated now.

I don’t have any answers regarding your dependency problem, but if you use certbot-auto in the meantime, it should restore your ability to issue and renew your existing certificates.

certbot-auto worked, thanks a lot!

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