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.
Bug 860621 - Got traceback for “rct cat-cert <entitlement cert serial number>-key.pem”
Summary: Got traceback for “rct cat-cert <entitlement cert serial number>-key.pem”
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: rc
: 6.4
Assignee: candlepin-bugs
QA Contact: Entitlement Bugs
URL:
Whiteboard:
Depends On:
Blocks: 771481
TreeView+ depends on / blocked
 
Reported: 2012-09-26 10:23 UTC by spandey
Modified: 2015-04-23 23:57 UTC (History)
7 users (show)

Fixed In Version: subscription-manager-1.1.1-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-21 08:56:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0350 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2013-02-20 20:53:35 UTC

Description spandey 2012-09-26 10:23:54 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:
3/3

Prerequisites : 
Rhel5.9 with following subscription-manager rpm.
subscription-manager-gui-1.0.19-1.git.14.3350ad0.el5
subscription-manager-migration-data-1.11.2.4-1.git.0.27879c1.el5
subscription-manager-1.0.19-1.git.14.3350ad0.el5
subscription-manager-migration-1.0.19-1.git.14.3350ad0.el5
subscription-manager-firstboot-1.0.19-1.git.14.3350ad0.el5

Steps to repro : 
Register client to candlepin and subscribe any subscription.
Open <entitlement cert> -key.pem using rct tool.

Expected Result : 
No traceback should display on console , 
command should end with proper error message. 

Actual Result : 
[root@dhcp193-98 entitlement]# rct cat-cert 3848992664474006504-key.pem
Traceback (most recent call last):
  File "/usr/bin/rct", line 44, in ?
    sys.exit(abs(main() or 0))
  File "/usr/bin/rct", line 39, in main
    return RctCLI().main()
  File "/usr/share/rhsm/subscription_manager/cli.py", line 140, in main
    return cmd.main()
  File "/usr/share/rhsm/rct/commands.py", line 40, in main
    return_code = self._do_command()
  File "/usr/share/rhsm/rct/commands.py", line 70, in _do_command
    cert = self._create_cert()
  File "/usr/share/rhsm/rct/commands.py", line 75, in _create_cert
    return certificate.create_from_file(self._get_file_from_args())
  File "/usr/lib64/python2.4/site-packages/rhsm/certificate.py", line 59, in create_from_file
    return _CertFactory().create_from_file(path)
  File "/usr/lib64/python2.4/site-packages/rhsm/certificate2.py", line 63, in create_from_file
    return self._read_x509(_certificate.load(path), path, pem)
  File "/usr/lib64/python2.4/site-packages/rhsm/certificate2.py", line 75, in _read_x509
    raise CertificateException("Error loading certificate")
rhsm.certificate.CertificateException: Error loading certificate

Comment 1 Devan Goodwin 2012-10-02 19:47:04 UTC
Fixed by James Bowes separately in commit c23273d0. (subscription-manager master)

Already released in 1.1.1.

Unfortunately this was not for 5.9, and requires a new string, so we cannot fix for 5.9 beyond string freeze.

Pushing to 6.4.

Comment 4 Shwetha Kallesh 2012-11-06 06:38:14 UTC
verified!!


[root@rhel-64-server ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.7.17-1
subscription-manager: 1.1.5-1.el6
python-rhsm: 1.1.4-1.el6


[root@rhel-64-server ~]# rct cat-cert /etc/pki/entitlement/1589641349868239033-key.pem 
Unable to read certificate file '/etc/pki/entitlement/1589641349868239033-key.pem': Error loading certificate

Comment 6 errata-xmlrpc 2013-02-21 08:56:26 UTC
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.

http://rhn.redhat.com/errata/RHBA-2013-0350.html


Note You need to log in before you can comment on or make changes to this bug.