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 607162 - (FAIL)Testcase : 256969 register to Candlepin, then muck with your identity certs (for fun and profit)
Summary: (FAIL)Testcase : 256969 register to Candlepin, then muck with your identity c...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.1
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Bryan Kearney
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 568421
TreeView+ depends on / blocked
 
Reported: 2010-06-23 12:24 UTC by spandey
Modified: 2015-04-23 23:56 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-19 13:37:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:0611 0 normal SHIPPED_LIVE new package: subscription-manager 2011-05-18 17:56:21 UTC

Description spandey 2010-06-23 12:24:14 UTC
Description of problem:


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


How reproducible:
100%

perquisites :
candlepin : cert-fte-candlepin.devlab.redhat.com
client : Rhel 6 with SM version 63 

steps to repro :

1.Register to a Candlepin environment using valid credentials 
2.Append some garbage to one or both of the consumer certfiles: 
dd oflag=append count=100 bs=1 if=/dev/urandom of=/etc/pki/consumer/cert.pem 
dd oflag=append count=100 bs=1 if=/dev/urandom of=/etc/pki/consumer/key.pen 
3.Attempt to access some of the subscription-manager functionality that requires registration (listing available subscriptions, subscribing, etc.) 
Expected Result : 
User told that they must register their system to Candlepin with a properly-localized error message

Actual Result:
[root@sachrhel6 ~]# subscription-manager-cli list --available

140302928897792:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:698:Expecting: CERTIFICATE



[root@sachrhel6 ~]# subscription-manager-cli list

140060373956352:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:698:Expecting: CERTIFICATE

Comment 3 RHEL Program Management 2010-06-23 12:52:51 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 4 wes hayutin 2010-07-22 19:01:17 UTC
Suggestion is to catch the error that ssl is exporting, and throw a human readable error.

Comment 5 Ajay Kumar Nadathur Sreenivasan 2010-07-26 15:05:45 UTC
I have added catch blocks to check for the certificate exceptions. If the certificate is not valid, the following message is printed to console. 

Consumer certificates corrupted. Please re-register

git-sha: 14ec170660b2d0429ac16611b856678ccc54d081

Comment 6 wes hayutin 2010-08-09 22:13:45 UTC
[root@client01-rhel6-beta2 src]# ./subscription-manager-cli list --available
Consumer certificates corrupted. Please re-register
[root@client01-rhel6-beta2 src]#

Comment 8 errata-xmlrpc 2011-05-19 13:37:29 UTC
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


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