Bug 575919 - subscription-manager-cli: PEM error when registering with Candlepin server
Summary: subscription-manager-cli: PEM error when registering with Candlepin server
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 0.5
Hardware: All
OS: Linux
urgent
medium
Target Milestone: ---
: ---
Assignee: Pradeep Kilambi
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-22 18:05 UTC by Steve Salevan
Modified: 2015-05-14 15:31 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-04 14:48:01 UTC
Embargoed:


Attachments (Terms of Use)

Description Steve Salevan 2010-03-22 18:05:30 UTC
Description of problem:
If a user attempts to register a client to a Candlepin server, they'll receive a variant of the following error:

[root@oldceremony tito]# subscription-manager-cli register --username=ssalevan --password=redhat
Traceback (most recent call last):
  File "/usr/sbin/subscription-manager-cli", line 69, in <module>
    sys.exit(abs(main() or 0))
  File "/usr/sbin/subscription-manager-cli", line 60, in main
    return managercli.CLI().main()
  File "/usr/share/rhsm/managercli.py", line 338, in main
    cmd.main()
  File "/usr/share/rhsm/managercli.py", line 67, in main
    self._do_command()
  File "/usr/share/rhsm/managercli.py", line 127, in _do_command
    self._write_consumer_cert(consumer)
  File "/usr/share/rhsm/managercli.py", line 115, in _write_consumer_cert
    consumerinfo['idCert']['pem'])
  File "/usr/share/rhsm/certlib.py", line 379, in __init__
    self.x509 = Certificate(certstring)
  File "/usr/share/rhsm/certificate.py", line 60, in __init__
    x509 = X509.load_cert_string(content)
  File "/usr/lib/python2.6/site-packages/M2Crypto/X509.py", line 655, in load_cert_string
    return load_cert_bio(bio, format)
  File "/usr/lib/python2.6/site-packages/M2Crypto/X509.py", line 639, in load_cert_bio
    raise X509Error(Err.get_error())
M2Crypto.X509.X509Error: 3077772992:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:698:Expecting: CERTIFICATE

Version-Release number of selected component (if applicable):
git HEAD, 3/22 pull

How reproducible:
Always

Steps to Reproduce:
1. Build the latest subscription-manager code and install it
2. Attempt to register a client to a candlepin server
  
Actual results:
As above

Expected results:
Client registers successfully

Additional info:

Comment 2 Jeff Weiss 2010-10-14 19:57:58 UTC
Sounds like this was an actual fix - which has been verified many times over, most recently on 0.92-1.

Comment 3 John Sefler 2011-05-04 14:48:01 UTC
Group move of VERIFIED Entitlement/'client tools' component bugs to CLOSED CURRENT_RELEASE since these bugs have already been included in Alpha and Beta releases for Entitlements.

Going forward, the RHEL/subscription-manager component is a better classification for these types of bugs.


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