Hostname SSL Installation Problem

Issues related to applications and software problems
Post Reply
Dev
Posts: 1
Joined: 2022/05/11 13:16:23

Hostname SSL Installation Problem

Post by Dev » 2022/05/11 13:24:26

hello,
I am facing very weird error message while renewing SSL Certificate On CentOS 7 Server with cPanel.

Code: Select all

Traceback (most recent call last):
  File "/usr/bin/letsencrypt", line 9, in <module>
    load_entry_point('certbot==1.11.0', 'console_scripts', 'certbot')()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2443, in load
    return self.resolve()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2449, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python2.7/site-packages/certbot/main.py", line 2, in <module>
    from certbot._internal import main as internal_main
  File "/usr/lib/python2.7/site-packages/certbot/_internal/main.py", line 11, in <module>
    import josepy as jose
  File "/usr/lib/python2.7/site-packages/josepy/__init__.py", line 60, in <module>
    from josepy.jwa import (
  File "/usr/lib/python2.7/site-packages/josepy/jwa.py", line 15, in <module>
    from josepy import errors, interfaces, jwk
  File "/usr/lib/python2.7/site-packages/josepy/jwk.py", line 11, in <module>
    from cryptography.hazmat.primitives import serialization
  File "/usr/lib64/python2.7/site-packages/cryptography/hazmat/primitives/serialization/__init__.py", line 7, in <module>
    from cryptography.hazmat.primitives.serialization.base import (
  File "/usr/lib64/python2.7/site-packages/cryptography/hazmat/primitives/serialization/base.py", line 13, in <module>
    from cryptography.hazmat.backends import _get_backend
ImportError: cannot import name _get_backend
I tried to search the problem via Google & found following Article which clearly provide me the cause of problem :

Code: Select all

https://bugzilla.redhat.com/show_bug.cgi?id=1884214
Can any one help me with fixing this problem ??? :roll: :roll:

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Hostname SSL Installation Problem

Post by TrevorH » 2022/05/11 14:35:40

I'd suggest asking cpanel since we do not support systems with it installed. The file that is giving the error is not supplied by any package available from CentOS repos nor from EPEL. On a system with certbot installed and working, the python2-cryptography-1.7.2-2.el7.x86_64 supplies the files in /usr/lib64/python2.7/site-packages/cryptography/hazmat/primitives and that directory does not have a 'serialization' subdirectory at all.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply