subscription-manager commands fail with "EntitlementCertificate object has no attribute alt_name" error

Solution Verified - Updated -


  • While registering a system to RHSM subscription-manager command fails with following error:
[root@~]# subscription-manager register 
'EntitlementCertificate' object has no attribute 'alt_name'
  • Traceback can be found in /var/log/rhsm/rhsm.log while running 'subscription-manager register' command:
EntitlementCertificate' object has no attribute 'alt_name'
2018-11-20 16:59:27,322 [INFO] rhsmd:12812:MainThread @rhsmd:279 - rhsmd started
2018-11-20 16:59:27,467 [ERROR] subscription-manager:12806:MainThread - exception caught in subscription-manager
2018-11-20 16:59:27,468 [ERROR] subscription-manager:12806:MainThread - 'EntitlementCertificate' object has no attribute 'alt_name'
Traceback (most recent call last):
  File "/usr/sbin/subscription-manager", line 96, in <module>
    sys.exit(abs(main() or 0))
  File "/usr/sbin/subscription-manager", line 87, in main
    return managercli.ManagerCLI().main()
  File "/usr/lib64/python2.7/site-packages/subscription_manager/", line 2618, in __init__
    CLI.__init__(self, command_classes=commands)
  File "/usr/lib64/python2.7/site-packages/subscription_manager/", line 99, in __init__
    cmd = clazz()
  File "/usr/lib64/python2.7/site-packages/subscription_manager/", line 974, in __init__
    super(RegisterCommand, self).__init__("register", shortdesc, True)
  File "/usr/lib64/python2.7/site-packages/subscription_manager/", line 522, in __init__
    super(UserPassCommand, self).__init__(name, shortdesc, primary)
  File "/usr/lib64/python2.7/site-packages/subscription_manager/", line 252, in __init__
    self.identity = inj.require(inj.IDENTITY)
  File "/usr/lib64/python2.7/site-packages/subscription_manager/", line 106, in require
    return FEATURES.require(feature, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/subscription_manager/", line 80, in require
    self.providers[feature] = provider(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/subscription_manager/", line 133, in __init__
  File "/usr/lib64/python2.7/site-packages/subscription_manager/", line 148, in reload
    self._name = self.consumer.getConsumerName()
  File "/usr/lib64/python2.7/site-packages/subscription_manager/", line 87, in getConsumerName
    altName = self.x509.alt_name
AttributeError: 'EntitlementCertificate' object has no attribute 'alt_name'


  • Red Hat Enterprise Linux Server 7
  • 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