Bug 789054 - rhui-manager can not handle spaces in entitlement cert generation
Summary: rhui-manager can not handle spaces in entitlement cert generation
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Update Infrastructure for Cloud Providers
Classification: Red Hat
Component: Tools
Version: 2.0.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jay Dobies
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-09 16:40 UTC by wes hayutin
Modified: 2012-03-12 19:39 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-12 19:39:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description wes hayutin 2012-02-09 16:40:53 UTC
Description of problem:


Command [openssl x509 -req -days 365 -in /root/ENT/Red Hat Update Infrastructure 2.0.csr -CA /etc/pki/rhui/entitlement-ca.crt -CAkey /etc/pki/rhui/entitlement-ca-key.pem -out /root/ENT/Red Hat Update Infrastructure 2.0.crt -extfile /root/ENT/Red Hat Update Infrastructure 2.0-extensions.txt -extensions rhui]
Certificate creation output

unknown option Hat
usage: x509 args
 -inform arg     - input format - default PEM (one of DER, NET or PEM)
 -outform arg    - output format - default PEM (one of DER, NET or PEM)
 -keyform arg    - private key format - default PEM
 -CAform arg     - CA format - default PEM
 -CAkeyform arg  - CA key format - default PEM
 -in arg         - input file - default stdin
 -out arg        - output file - default stdout
 -passin arg     - private key password source
 -serial         - print serial number value


recreate:

1. e   create entitlement certificates and client configuration RPMs
2. e   generate an entitlement certificate
3. pick some repos
4. 
Name of the certificate. This will be used as the name of the certificate file
(name.crt) and its associated private key (name.key). Choose something that will
help identify the products contained with it:

Use a name w/ spaces here...

Comment 1 wes hayutin 2012-02-09 16:45:55 UTC
the above error is found in /root/.rhui/rhui.log

Comment 2 James Slagle 2012-02-09 19:50:42 UTC
I don't think spaces are something we need to add support for.  Anyway, this is not a regression, so it's something we can discuss as possible inclusion in the next release of RHUI.

Comment 3 James Slagle 2012-02-10 17:28:37 UTC
Added check to disallow spaces in the name.

committed to cloude repo: b4a4c97cf77d0e8e2ad9a50275a11c2d7f7ec974

Comment 4 James Slagle 2012-02-10 17:37:28 UTC
built into rh-rhui-tools 2.0.55

brew build:
https://brewweb.devel.redhat.com/buildinfo?buildID=198358

Will probably wait on spinning a new iso until monday to see if any other issues pop up.

Comment 5 Kedar Bidarkar 2012-02-17 10:37:18 UTC
    -  24: Red Hat Enterprise Linux 6 Server - Optional Beta from RHUI(Debug RPMs)
    -  25: Red Hat Enterprise Linux 6 Server - Supplementary (Debug RPMs) from RHUI
    -  26: Red Hat Enterprise Linux 6 Server - Supplementary (RPMs) from RHUI *
    -  27: Red Hat Enterprise Linux 6 Server - Supplementary (Source RPMs) from RHUI
    -  28: Red Hat Enterprise Linux 6 Server - Supplementary Beta (Debug RPMs) from RHUI
    -  29: Red Hat Enterprise Linux 6 Server - Supplementary Beta (RPMs) from RHUI
    -  30: Red Hat Enterprise Linux 6 Server - Supplementary Beta (Source RPMs) from RHUI
    -  31: Red Hat Enterprise Linux 6 Server Beta (Source RPMs) from RHUI
    -  32: Red Hat Enterprise Linux 6 Server Beta from RHUI (Debug RPMs)
    -  33: Red Hat Enterprise Linux 6 Server Beta from RHUI (RPMs)
    -  34: Red Hat Update Infrastructure 1.2 (Debug RPMs)
    -  35: Red Hat Update Infrastructure 1.2 (RPMs)
    -  36: Red Hat Update Infrastructure 1.2 (Source RPMs)
    -  37: Red Hat Update Infrastructure 2.0 (Debug RPMs)
    -  38: Red Hat Update Infrastructure 2.0 (RPMs)
    -  39: Red Hat Update Infrastructure 2.0 (Source RPMs)

Enter value (1-39) to toggle selection, 'c' to confirm selections, or '?' for more commands: c


Name of the certificate. This will be used as the name of the certificate file
(name.crt) and its associated private key (name.key). Choose something that will
help identify the products contained with it:
rh rhui 

The name can not contain spaces.

Name of the certificate. This will be used as the name of the certificate file
(name.crt) and its associated private key (name.key). Choose something that will
help identify the products contained with it:
rh-rhui-rhel5-server

Local directory in which to save the generated certificate [current directory]:
/root

Number of days the certificate should be valid [365]:
365

Repositories to be included in the entitlement certificate:

  Red Hat Repositories
    Red Hat Enterprise Linux 5 Server from RHUI (RPMs)

Proceed? (y/n) y

...............................................................................+++
....................................+++
Entitlement certificate created at /root/rh-rhui-rhel5-server.crt

------------------------------------------------------------------------------

Comment 6 James Slagle 2012-03-12 19:39:07 UTC
Released in RHUI 2.0.2


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