Bug 693290

Summary: rhn-ssl-tool will not update the cnf file settings if the fqdn changes
Product: Red Hat Satellite 5 Reporter: Felix Dewaleyne <fdewaley>
Component: OtherAssignee: Jan Pazdziora <jpazdziora>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Korbel <mkorbel>
Severity: medium Docs Contact:
Priority: medium    
Version: 540CC: cperry, cww, jpazdziora, lpramuk, mkorbel, nigjones, xdmoon
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: spacewalk-certs-tools-1.7.3-3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-19 10:11:10 UTC Type: ---
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: 818987, 819024    

Description Felix Dewaleyne 2011-04-04 08:30:27 UTC
Description of problem:
If we generate a certificate to change the FQDN part of the hostname value, the new certificate generated is still using the old FQDN

Version-Release number of selected component (if applicable):
spacewalk-certs-tools-1.1.1.1

How reproducible:
all the time

Steps to Reproduce:
1.rhn-ssl-tool --gen-server -v --set-hostname="test.broken.fqdn" --set-country="GB" --set-state="Hampshire" --set-city="Raleigh" --set-org="Red Hat" --set-org-unit="GSS EMEA" --set-email="emea-gss-lab"
2.rhn-ssl-tool --gen-server -v --set-hostname="test.fixed.fqdn" --set-country="GB" --set-state="Hampshire" --set-city="Raleigh" --set-org="Red Hat" --set-org-unit="GSS EMEA" --set-email="emea-gss-lab"

  
Actual results:
the new certificate generated still uses the old fqdn ; the hostname field is not altered in the .cnf file that's used in the generation either

Expected results:
a new certificate with the new fqdn is generated

Additional info:
it is possible to manually fix this by changing the hostname value in the .cnf file to what's supposed to be used.

this also happens when the first hostname was given without any fqdn on the first time.

Comment 11 Jan Pazdziora 2012-07-04 10:02:56 UTC
Making bugzilla public.

Comment 12 Jan Pazdziora 2012-07-04 10:04:00 UTC
Fixed in Spacewalk master, eb03cacd442bc4819a9f62c16fb23a0adb169148.