Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 732509 - Can not import a certificate via the cli
Can not import a certificate via the cli
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager (Show other bugs)
5.7
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: Chris Duryee
:
Depends On: 730380
Blocks: 715031
  Show dependency treegraph
 
Reported: 2011-08-22 14:20 EDT by Mike Khusid
Modified: 2013-04-02 19:46 EDT (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
It was decided a long time ago that a Command Line Interface "root" user could accomplish import using: cp <import_file> /etc/pki/entitlement The design has changed so that an entitlement cert from rhsm-web can now have a key appended. As such a CLI import function makes sense to handle splitting the contents of the import file.
Story Points: ---
Clone Of: 730380
Environment:
Last Closed: 2012-02-21 01:31:28 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0154 normal SHIPPED_LIVE subscription-manager bug fix update 2012-02-20 10:06:04 EST

  None (edit)
Description Mike Khusid 2011-08-22 14:20:13 EDT
Please backport to RHEL5.

+++ This bug was initially created as a clone of Bug #730380 +++

GUI has this functionality, the cli does not.

--- Additional comment from jsefler@redhat.com on 2011-08-12 15:15:26 EDT ---

Background...
It was decided a long time ago that a CLI "root" user could accomplish import using: cp <import_file> /etc/pki/entitlement

However, the design has changed so that an entitlement cert from rhsm-web can now have a key appended (see bug 712980).  As such a CLI import function makes sense to handle splitting the contents of the import file..

--- Additional comment from bkearney@redhat.com on 2011-08-15 14:05:19 EDT ---

fixed in master at eeb90f106bc8fe32baf797ae33bdfc48608738f2.
Comment 1 Bryan Kearney 2011-10-20 10:38:51 EDT
Master as of 20 October supports this, so 5.8 will supprot this.
Comment 2 errata-xmlrpc 2011-10-28 14:56:45 EDT
Bug report changed to ON_QA status by Errata System.
A QE request has been submitted for advisory RHBA-2011:12204-01
http://errata.devel.redhat.com/errata/show/12204
Comment 3 Shwetha Kallesh 2011-11-24 05:01:10 EST
Moving the bug to verified...


RPM used:
[root@tiger entitlement]# rpm -qa | grep subscription-manager
subscription-manager-gnome-0.98.3-1.git.16.14460bc.el5_7
subscription-manager-firstboot-0.98.3-1.git.16.14460bc.el5_7
subscription-manager-migration-0.98.3-1.git.16.14460bc.el5_7
subscription-manager-0.98.3-1.git.16.14460bc.el5_7

Steps to verify:

[root@tiger entitlement]# subscription-manager import --certificate=/shwetha.pem 
Successfully imported certificate shwetha.pem

[root@tiger entitlement]# ll
total 16
-rw-r--r-- 1 root root 1678 Nov 24 03:26 596101531355637997-key.pem
-rw-r--r-- 1 root root 1788 Nov 24 03:26 596101531355637997.pem
Comment 4 William Poteat 2012-01-20 14:20:25 EST
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
It was decided a long time ago that a Command Line Interface "root" user could accomplish import using: cp <import_file> /etc/pki/entitlement

The design has changed so that an entitlement cert from rhsm-web can now have a key appended.  As such a CLI import function makes sense to handle splitting the contents of the import file.
Comment 5 errata-xmlrpc 2012-02-21 01:31:28 EST
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-2012-0154.html

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