Bug 1697487

Summary: mod_auth_mellon Cert files name wrong when hostname contains a number (fixed in upstream package) [rhel-7.6.z]
Product: Red Hat Enterprise Linux 7 Reporter: RAD team bot copy to z-stream <autobot-eus-copy>
Component: mod_auth_mellonAssignee: Jakub Hrozek <jhrozek>
Status: CLOSED ERRATA QA Contact: Scott Poore <spoore>
Severity: high Docs Contact:
Priority: high    
Version: 7.7CC: cpelland, jbgorrie, jhrozek, nkinder, spoore, tscherf
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mod_auth_mellon-0.14.0-2.el7_6.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1652980 Environment:
Last Closed: 2019-04-16 14:40:29 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: 1652980    
Bug Blocks:    

Description RAD team bot copy to z-stream 2019-04-08 13:59:17 UTC
This bug has been copied from bug #1652980 and has been proposed to be backported to 7.6 z-stream (EUS).

Comment 4 Scott Poore 2019-04-08 19:42:16 UTC
Verified.

Version ::

mod_auth_mellon-0.14.0-2.el7_6.2.x86_64

Results ::

[root@rhel7-2 httpd]# hostnameorig=$(hostname)

[root@rhel7-2 httpd]# hostnamectl set-hostname mellon100.example.com

[root@rhel7-2 httpd]# /usr/libexec/mod_auth_mellon/mellon_create_metadata.sh \
>     https://$(hostname)/mellon https://$(hostname)/mellon \
>     > mellon_create_metadata.out 2>&1

[root@rhel7-2 httpd]# cat mellon_create_metadata.out
Output files:
Private key:                              https_mellon100.example.com_mellon.key
Certificate:                              https_mellon100.example.com_mellon.cert
Metadata:                                 https_mellon100.example.com_mellon.xml
Host:                                     mellon100.example.com

Endpoints:
SingleLogoutService (SOAP):               https://mellon100.example.com/mellon/logout
SingleLogoutService (HTTP-Redirect):      https://mellon100.example.com/mellon/logout
AssertionConsumerService (HTTP-POST):     https://mellon100.example.com/mellon/postResponse
AssertionConsumerService (HTTP-Artifact): https://mellon100.example.com/mellon/artifactResponse
AssertionConsumerService (PAOS):          https://mellon100.example.com/mellon/paosResponse

[root@rhel7-2 httpd]# grep mellon100.example.com_mellon mellon_create_metadata.out
Private key:                              https_mellon100.example.com_mellon.key
Certificate:                              https_mellon100.example.com_mellon.cert
Metadata:                                 https_mellon100.example.com_mellon.xml

Comment 6 errata-xmlrpc 2019-04-16 14:40:29 UTC
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.

https://access.redhat.com/errata/RHSA-2019:0766