Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
install latest subscription-manager builds from jenkins ,copy the ca- cert to client n try to rct cc candlepin-ca.pem
Version-Release number of selected component (if applicable):
subscription management server: 2.0.26-1
subscription management rules: 5.21
subscription-manager: 1.19.1-1.git.10.02b3026.el6
python-rhsm: 1.19.1-1.git.3.9985682.el6
How reproducible:
Always
Steps to Reproduce:
1.copy candlepin-ca.crt to client after deployment of the server
ex: scp root@server:/etc/candlepin/certs/candlepin-ca.crt /etc/rhsm/ca/candlepin-ca.pem
2.# rct cc /etc/rhsm/ca/candlepin-ca.pem
Unable to read certificate file '/etc/rhsm/ca/candlepin-ca.pem': 'NoneType' object has no attribute 'decode'
Actual results:
rct cat-cert fails with error
Expected results:
user should be able to view the contents
Additional info:
rhsm.log
===========
2017-02-23 12:34:44,336 [INFO] subscription-manager:7380:MainThread @connection.py:505 - Response: status=200, requestUuid=fbf81b91-b85f-43bb-9b7f-7a9f119d5415, request="GET /subscription/status"
2017-02-23 12:34:44,338 [INFO] subscription-manager:7380:MainThread @managercli.py:401 - Server Versions: {'rules-version': u'5.15.1', 'candlepin': u'0.9.51.21-1', 'server-type': 'This system is currently not registered.'}
2017-02-23 12:34:52,610 [ERROR] rct:7383:MainThread @certificate2.py:104 - 'NoneType' object has no attribute 'decode'
Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/rhsm/certificate2.py", line 97, in _read_x509
return self._create_v1_cert(version, extensions, x509, path)
File "/usr/lib64/python2.6/site-packages/rhsm/certificate2.py", line 112, in _create_v1_cert
return self._create_identity_cert(version, extensions, x509, path)
File "/usr/lib64/python2.6/site-packages/rhsm/certificate2.py", line 135, in _create_identity_cert
alt_name=self._read_alt_name(x509),
File "/usr/lib64/python2.6/site-packages/rhsm/certificate2.py", line 119, in _read_alt_name
return x509.get_extension(name='subjectAltName').decode('utf-8')
AttributeError: 'NoneType' object has no attribute 'decode'
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2017:2083
Description of problem: install latest subscription-manager builds from jenkins ,copy the ca- cert to client n try to rct cc candlepin-ca.pem Version-Release number of selected component (if applicable): subscription management server: 2.0.26-1 subscription management rules: 5.21 subscription-manager: 1.19.1-1.git.10.02b3026.el6 python-rhsm: 1.19.1-1.git.3.9985682.el6 How reproducible: Always Steps to Reproduce: 1.copy candlepin-ca.crt to client after deployment of the server ex: scp root@server:/etc/candlepin/certs/candlepin-ca.crt /etc/rhsm/ca/candlepin-ca.pem 2.# rct cc /etc/rhsm/ca/candlepin-ca.pem Unable to read certificate file '/etc/rhsm/ca/candlepin-ca.pem': 'NoneType' object has no attribute 'decode' Actual results: rct cat-cert fails with error Expected results: user should be able to view the contents Additional info: rhsm.log =========== 2017-02-23 12:34:44,336 [INFO] subscription-manager:7380:MainThread @connection.py:505 - Response: status=200, requestUuid=fbf81b91-b85f-43bb-9b7f-7a9f119d5415, request="GET /subscription/status" 2017-02-23 12:34:44,338 [INFO] subscription-manager:7380:MainThread @managercli.py:401 - Server Versions: {'rules-version': u'5.15.1', 'candlepin': u'0.9.51.21-1', 'server-type': 'This system is currently not registered.'} 2017-02-23 12:34:52,610 [ERROR] rct:7383:MainThread @certificate2.py:104 - 'NoneType' object has no attribute 'decode' Traceback (most recent call last): File "/usr/lib64/python2.6/site-packages/rhsm/certificate2.py", line 97, in _read_x509 return self._create_v1_cert(version, extensions, x509, path) File "/usr/lib64/python2.6/site-packages/rhsm/certificate2.py", line 112, in _create_v1_cert return self._create_identity_cert(version, extensions, x509, path) File "/usr/lib64/python2.6/site-packages/rhsm/certificate2.py", line 135, in _create_identity_cert alt_name=self._read_alt_name(x509), File "/usr/lib64/python2.6/site-packages/rhsm/certificate2.py", line 119, in _read_alt_name return x509.get_extension(name='subjectAltName').decode('utf-8') AttributeError: 'NoneType' object has no attribute 'decode'