Bug 849171 - getting an extraneous "verify\n" in stdout during an invalid certificate import
Summary: getting an extraneous "verify\n" in stdout during an invalid certificate import
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Bryan Kearney
QA Contact: Entitlement Bugs
URL:
Whiteboard:
Depends On:
Blocks: 771748
TreeView+ depends on / blocked
 
Reported: 2012-08-17 14:59 UTC by John Sefler
Modified: 2013-01-10 09:48 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-08 03:59:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0033 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2013-01-08 08:38:27 UTC

Description John Sefler 2012-08-17 14:59:08 UTC
Description of problem:
An extraneous "verify\n" prefix seems to have snuck into a stdout message when attempting to import an invalid certificate.

Version-Release number of selected component (if applicable):
[root@jsefler-rhel59 ~]# subscription-manager version
registered to: 0.7.6-1
server type: subscription management service
subscription-manager: 1.0.13-1.git.45.5cb55c8.el5
python-rhsm: 1.0.5-1.git.1.1ce0910.el5


How reproducible:
sometimes

Steps to Reproduce:
[root@jsefler-rhel59 ~]# subscription-manager import --certificate /etc/pki/entitlement/969118734171102355-key.pem 
verify
969118734171102355-key.pem is not a valid certificate file. Please use a valid certificate.
[root@jsefler-rhel59 ~]# 


Actual Results:
verify               <============ UNEXPECTED
969118734171102355-key.pem is not a valid certificate file. Please use a valid certificate.

Expected Results:
969118734171102355-key.pem is not a valid certificate file. Please use a valid certificate.

Additional info:

Comment 2 Bryan Kearney 2012-08-17 16:47:17 UTC
fixed in master at 18c5fde261c4b1da1fd8e0cdb0966f2357dbb67a

Comment 4 John Sefler 2012-08-24 21:25:02 UTC
Verifying Version....

[root@jsefler-rhel59 ~]# subscription-manager version
registered to: Unknown
server type: subscription management service
subscription-manager: 1.0.14-1.el5

[root@jsefler-rhel59 ~]# subscription-manager import --certificate /etc/pki/entitlement/5757936486111047833.pem 
5757936486111047833.pem is not a valid certificate file. Please use a valid certificate.
[root@jsefler-rhel59 ~]# 
[root@jsefler-rhel59 ~]# subscription-manager import --certificate /etc/pki/entitlement/5757936486111047833-key.pem 
5757936486111047833-key.pem is not a valid certificate file. Please use a valid certificate.
[root@jsefler-rhel59 ~]# 
[root@jsefler-rhel59 ~]# subscription-manager import --certificate /etc/pki/consumer/cert.pem 
cert.pem is not a valid certificate file. Please use a valid certificate.
[root@jsefler-rhel59 ~]# 
[root@jsefler-rhel59 ~]# subscription-manager import --certificate /etc/pki/consumer/key.pem 
key.pem is not a valid certificate file. Please use a valid certificate.
[root@jsefler-rhel59 ~]# 

^^^ VERIFIED: The extraneous "verify" string was not printed during any of the negative certificate import tests above.

Comment 6 errata-xmlrpc 2013-01-08 03:59:21 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-0033.html


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