Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1436201

Summary: spacewalk-setup creates a https certicate without the FQDN in the CN
Product: [Community] Spacewalk Reporter: w.westra
Component: InstallationAssignee: Jan Dobes <jdobes>
Status: CLOSED NOTABUG QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.6   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-27 13:43:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1484117    
Attachments:
Description Flags
hostfile on the spacewalk server none

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.