diff options
| author | Mark Goddard <mark@stackhpc.com> | 2019-12-11 10:59:47 +0000 |
|---|---|---|
| committer | Mark Goddard <mark@stackhpc.com> | 2020-01-14 13:16:41 +0000 |
| commit | c12ada91d05521996e44bcbfe392ad45367587af (patch) | |
| tree | 6b68ce0e5fbf146b9572cbcbe162c7c685f81c5b | |
| parent | 6ef631d229eb545246776c0618573daefc8f85bc (diff) | |
| download | kolla-c12ada91d05521996e44bcbfe392ad45367587af.tar.gz kolla-c12ada91d05521996e44bcbfe392ad45367587af.zip | |
CentOS 8: work around mod_ssl certificate issue
CentOS 8 has an issue with mod_ssl which produces an invalid Apache
configuration in /etc/httpd/conf.d/ssl.conf. This causes the following
error on startup:
SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not exist or is empty
Work around this by generating certificates manually.
Partially-Implements: blueprint centos-rhel-8
Change-Id: Id8bcefa3527575ba72fe37013787ba716e435ac8
(cherry picked from commit 3590188383d8590a1e91573da656776563f65fcb)
| -rw-r--r-- | docker/base/httpd_setup.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docker/base/httpd_setup.sh b/docker/base/httpd_setup.sh index 990062e6d..edb1d7df6 100644 --- a/docker/base/httpd_setup.sh +++ b/docker/base/httpd_setup.sh @@ -15,4 +15,13 @@ if [[ "$(whoami)" == 'root' ]]; then else rm -rf /var/run/httpd/* /run/httpd/* /tmp/httpd* fi + + # CentOS 8 has an issue with mod_ssl which produces an invalid Apache + # configuration in /etc/httpd/conf.d/ssl.conf. This causes the following error + # on startup: + # SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not exist or is empty + # Work around this by generating certificates manually. + if [[ ${KOLLA_BASE_DISTRO} = centos ]] && [[ ! -e /etc/pki/tls/certs/localhost.crt ]]; then + /usr/libexec/httpd-ssl-gencerts + fi fi |
