Article 5BXVN AttributeError: module 'lib' has no attribute 'Cryptography_HAS_TLSEXT_HOSTNAME'

AttributeError: module 'lib' has no attribute 'Cryptography_HAS_TLSEXT_HOSTNAME'

by
sse450
from LinuxQuestions.org on (#5BXVN)
Following an update on my CentOS 8, "certbot renew" cannot run and throws the following error:

Code:Traceback (most recent call last):
File "/usr/bin/certbot", line 11, in <module>
load_entry_point('certbot==1.10.1', 'console_scripts', 'certbot')()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 476, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2700, in load_entry_point
return ep.load()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2318, in load
return self.resolve()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3.6/site-packages/certbot/main.py", line 2, in <module>
from certbot._internal import main as internal_main
File "/usr/lib/python3.6/site-packages/certbot/_internal/main.py", line 10, in <module>
import josepy as jose
File "/usr/lib/python3.6/site-packages/josepy/__init__.py", line 41, in <module>
from josepy.interfaces import JSONDeSerializable
File "/usr/lib/python3.6/site-packages/josepy/interfaces.py", line 7, in <module>
from josepy import errors, util
File "/usr/lib/python3.6/site-packages/josepy/util.py", line 7, in <module>
import OpenSSL
File "/usr/lib/python3.6/site-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import crypto, SSL
File "/usr/lib/python3.6/site-packages/OpenSSL/SSL.py", line 669, in <module>
_lib.Cryptography_HAS_TLSEXT_HOSTNAME, "SNI not available"
AttributeError: module 'lib' has no attribute 'Cryptography_HAS_TLSEXT_HOSTNAME'I have no idea what the culprit is. Also, probably related with this issue, any dnf command gives a warning as first line:

Code:Failed loading plugin "spacewalk": module 'lib' has no attribute 'Cryptography_HAS_TLSEXT_HOSTNAME'I would appreciate any help.

Thank you.latest?d=yIl2AUoC8zA latest?i=mPhKOOVFbi0:66I3QZePo_4:F7zBnMy latest?i=mPhKOOVFbi0:66I3QZePo_4:V_sGLiP latest?d=qj6IDK7rITs latest?i=mPhKOOVFbi0:66I3QZePo_4:gIN9vFwmPhKOOVFbi0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments