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.
Created attachment 488443[details]
importing invalid certs
Description of problem:
When importing an invalid or broken certificate, subscription-manager throws a traceback (expected), but it goes ahead and installs the cert in the /etc/pki/entitlements directory anyway. This causes subscription manager to crash upon all subsequent start-ups.
Version-Release number of selected component (if applicable):
subscription-manager-gnome-0.95.5-1.git.26.ce6d87f.el6.x86_64
subscription-manager-0.95.5-1.git.26.ce6d87f.el6.x86_64
subscription-manager-firstboot-0.95.5-1.git.26.ce6d87f.el6.x86_64
python-rhsm-0.95.5-1.git.0.0bfdb97.el6.noarch
Steps to Reproduce:
1. Install subscription-manager-gui
2. Obtain an invalid or broken x509 cert. (I used an identity cert from the web subscription manager in stage).
3. Using rhsm-gui, use the import cert tool and import this cert.
4. Watch rhsm throw a traceback.
5. Close the rhsm-gui.
6. Start the gui back up.
Actual results:
See attachment for logs/stack trace of broken imported cert.
[root@jmolet-vm3 Desktop]# subscription-manager-gui
(subscription-manager-gui:19706): libglade-WARNING **: unknown attribute `swapped' for <signal>.
(subscription-manager-gui:19706): libglade-WARNING **: unknown attribute `swapped' for <signal>.
(subscription-manager-gui:19706): libglade-WARNING **: unknown attribute `swapped' for <signal>.
(subscription-manager-gui:19706): libglade-WARNING **: unknown attribute `swapped' for <signal>.
(subscription-manager-gui:19706): libglade-WARNING **: unknown attribute `swapped' for <signal>.
(subscription-manager-gui:19706): libglade-WARNING **: unknown attribute `swapped' for <signal>.
(subscription-manager-gui:19706): libglade-WARNING **: unknown attribute `swapped' for <signal>.
(subscription-manager-gui:19706): libglade-WARNING **: unknown attribute `swapped' for <signal>.
(subscription-manager-gui:19706): libglade-WARNING **: Unexpected element <property> inside <widget>.
(subscription-manager-gui:19706): libglade-WARNING **: unknown attribute `swapped' for <signal>.
(subscription-manager-gui:19706): libglade-WARNING **: unknown attribute `swapped' for <signal>.
(subscription-manager-gui:19706): libglade-WARNING **: unknown attribute `swapped' for <signal>.
'list' object has no attribute 'getStart'
[root@jmolet-vm3 Desktop]# subscription-manager list --available
'list' object has no attribute 'getStart'
Also, the cert is installed in /etc/pki/entitlements/
Expected results:
The invalid cert is rejected from being installed and doesn't cause these problems.
Additional info:
This also breaks the cli tool.
Two phases to the fix, first don't choke on bad entitlement certs when running the app:
python-rhsm master:260a305688981a9fce90db30620b2789972187f5
python-rhsm RHEL6: 59b23524a7c5b8287b98312b379a44cba9c73572
python-rhsm RHEL5.7: 44f10dfb565ecc7065c71c1e366238a0f3ce9986
Second check if a cert is valid before dropping it onto the filesystem:
subscription-manager master: 259f019bddcf6a58105758415f652d0b3d3ed369
subscription-manager RHEL6: 259f019bddcf6a58105758415f652d0b3d3ed369
subscription-manager RHEL5.7: 6fe888f7e8f72eebd126f2a8350da3ad529e06b1
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.
http://rhn.redhat.com/errata/RHEA-2011-0611.html
Created attachment 488443 [details] importing invalid certs Description of problem: When importing an invalid or broken certificate, subscription-manager throws a traceback (expected), but it goes ahead and installs the cert in the /etc/pki/entitlements directory anyway. This causes subscription manager to crash upon all subsequent start-ups. Version-Release number of selected component (if applicable): subscription-manager-gnome-0.95.5-1.git.26.ce6d87f.el6.x86_64 subscription-manager-0.95.5-1.git.26.ce6d87f.el6.x86_64 subscription-manager-firstboot-0.95.5-1.git.26.ce6d87f.el6.x86_64 python-rhsm-0.95.5-1.git.0.0bfdb97.el6.noarch Steps to Reproduce: 1. Install subscription-manager-gui 2. Obtain an invalid or broken x509 cert. (I used an identity cert from the web subscription manager in stage). 3. Using rhsm-gui, use the import cert tool and import this cert. 4. Watch rhsm throw a traceback. 5. Close the rhsm-gui. 6. Start the gui back up. Actual results: See attachment for logs/stack trace of broken imported cert. [root@jmolet-vm3 Desktop]# subscription-manager-gui (subscription-manager-gui:19706): libglade-WARNING **: unknown attribute `swapped' for <signal>. (subscription-manager-gui:19706): libglade-WARNING **: unknown attribute `swapped' for <signal>. (subscription-manager-gui:19706): libglade-WARNING **: unknown attribute `swapped' for <signal>. (subscription-manager-gui:19706): libglade-WARNING **: unknown attribute `swapped' for <signal>. (subscription-manager-gui:19706): libglade-WARNING **: unknown attribute `swapped' for <signal>. (subscription-manager-gui:19706): libglade-WARNING **: unknown attribute `swapped' for <signal>. (subscription-manager-gui:19706): libglade-WARNING **: unknown attribute `swapped' for <signal>. (subscription-manager-gui:19706): libglade-WARNING **: unknown attribute `swapped' for <signal>. (subscription-manager-gui:19706): libglade-WARNING **: Unexpected element <property> inside <widget>. (subscription-manager-gui:19706): libglade-WARNING **: unknown attribute `swapped' for <signal>. (subscription-manager-gui:19706): libglade-WARNING **: unknown attribute `swapped' for <signal>. (subscription-manager-gui:19706): libglade-WARNING **: unknown attribute `swapped' for <signal>. 'list' object has no attribute 'getStart' [root@jmolet-vm3 Desktop]# subscription-manager list --available 'list' object has no attribute 'getStart' Also, the cert is installed in /etc/pki/entitlements/ Expected results: The invalid cert is rejected from being installed and doesn't cause these problems. Additional info: This also breaks the cli tool.