subscription-manager register command fails with the following error "System certificates are corrupted. Please reregister."

Solution Verified - Updated -

Issue

  • When attempting to register the system using subscription-manager, the following error is encountered:

    # subscription-manager register
      System certificates corrupted. Please reregister.
    
  • The following traceback appears in the /var/log/rhsm/rhsm.log file during registration attempts:

    2025-04-29 02:45:43,369 [ERROR] dnf:2381780:MainThread @certificate2.py:143 - module 'dateutil.tz' has    no 
    attribute 'UTC'
    Traceback (most recent call last):
      File "/usr/lib64/python3.6/site-packages/rhsm/certificate2.py", line 136, in _read_x509
        return self._create_v1_cert(version, extensions, x509, path)
      File "/usr/lib64/python3.6/site-packages/rhsm/certificate2.py", line 155, in _create_v1_cert
        return self._create_v1_prod_cert(version, extensions, x509, path)
      File "/usr/lib64/python3.6/site-packages/rhsm/certificate2.py", line 194, in _create_v1_prod_cert
        start=get_datetime_from_x509(x509.get_not_before()),
      File "/usr/lib64/python3.6/site-packages/rhsm/certificate.py", line 90, in get_datetime_from_x509
        return dateutil.parser.parse(date)
      File "/usr/lib/python3.6/site-packages/dateutil/parser/_parser.py", line 1368, in parse
        return DEFAULTPARSER.parse(timestr, **kwargs)
      File "/usr/lib/python3.6/site-packages/dateutil/parser/_parser.py", line 654, in parse
        ret = self._build_tzaware(ret, res, tzinfos)
      File "/usr/lib/python3.6/site-packages/dateutil/parser/_parser.py", line 1195, in _build_tzaware
        aware = naive.replace(tzinfo=tz.UTC)
    AttributeError: module 'dateutil.tz' has no attribute 'UTC'
    

Environment

  • Red Hat Enterprise Linux 8.10
  • Red Hat Subscription Management (RHSM)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content