Bug 1436201 - spacewalk-setup creates a https certicate without the FQDN in the CN
Summary: spacewalk-setup creates a https certicate without the FQDN in the CN
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Spacewalk
Classification: Community
Component: Installation
Version: 2.6
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Jan Dobes
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space27
TreeView+ depends on / blocked
 
Reported: 2017-03-27 12:37 UTC by w.westra
Modified: 2017-09-28 18:09 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-27 13:43:23 UTC
Embargoed:


Attachments (Terms of Use)
hostfile on the spacewalk server (243 bytes, text/plain)
2017-03-27 12:37 UTC, w.westra
no flags Details

Description w.westra 2017-03-27 12:37:07 UTC
Created attachment 1266630 [details]
hostfile on the spacewalk server

Description of problem:


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


How reproducible:


Steps to Reproduce:
1. spacewalk-setup
2. 
Should setup configure apache's default ssl server for you (saves original ssl.conf) [Y]?
** /etc/httpd/conf.d/ssl.conf has been backed up to ssl.conf-swsave
* Configuring jabberd.
* Creating SSL certificates.
CA certificate password?
Re-enter CA certificate password?
Organization? LandG
Organization Unit [spacewalk]? spacewalk.lgn.nl
snip
..
..
snip


Installation complete.
Visit https://spacewalk to create the Spacewalk administrator account.

Actual results:

The cn in the ssl certificate is the short name of the host



Expected results:
CN in the generated certificate  should be a fqdn ,  spacewalk.lgn.nl in this example 

during the setup the value for cn is never asked.





Additional info:

Comment 1 w.westra 2017-03-27 13:43:23 UTC
Fixed by setting teh hostname to a FQDN value before spacewalk-setup


hostnamectl set-hostname spacewalk.lgn.nl



The installer did not complain about the hostname not being FQDN.
The Documentation could be improved with for example:

Do not continue unless the hostname command  returns a FQDN result.

Comment 2 Eric Herget 2017-09-28 18:09:19 UTC
This BZ closed some time during 2.5, 2.6 or 2.7.  Adding to 2.7 tracking bug.


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