better error handling in httpd-ssl-gencerts (#1494556)
Resolves: rhbz#1494556
This commit is contained in:
parent
2038991f8c
commit
10e930c744
@ -3,6 +3,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
FQDN=`hostname`
|
FQDN=`hostname`
|
||||||
|
ssldotconf=/etc/httpd/conf.d/ssl.conf
|
||||||
|
|
||||||
if test -f /etc/pki/tls/certs/localhost.crt -a \
|
if test -f /etc/pki/tls/certs/localhost.crt -a \
|
||||||
-f /etc/pki/tls/private/localhost.key; then
|
-f /etc/pki/tls/private/localhost.key; then
|
||||||
@ -21,6 +22,12 @@ if test ! -f /etc/pki/tls/certs/localhost.crt -a \
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! test -f ${ssldotconf} || \
|
||||||
|
! grep -q '^SSLCertificateFile /etc/pki/tls/certs/localhost.crt' ${ssldotconf} || \
|
||||||
|
! grep -q '^SSLCertificateKeyFile /etc/pki/tls/private/localhost.key' ${ssldotconf}; then
|
||||||
|
# Non-default configuration, do nothing.
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
sscg -q \
|
sscg -q \
|
||||||
--cert-file /etc/pki/tls/certs/localhost.crt \
|
--cert-file /etc/pki/tls/certs/localhost.crt \
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
Summary: Apache HTTP Server
|
Summary: Apache HTTP Server
|
||||||
Name: httpd
|
Name: httpd
|
||||||
Version: 2.4.27
|
Version: 2.4.27
|
||||||
Release: 11%{?dist}
|
Release: 12%{?dist}
|
||||||
URL: https://httpd.apache.org/
|
URL: https://httpd.apache.org/
|
||||||
Source0: https://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2
|
Source0: https://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2
|
||||||
Source1: index.html
|
Source1: index.html
|
||||||
@ -689,6 +689,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_rpmconfigdir}/macros.d/macros.httpd
|
%{_rpmconfigdir}/macros.d/macros.httpd
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Sep 22 2017 Joe Orton <jorton@redhat.com> - 2.4.27-12
|
||||||
|
- better error handling in httpd-ssl-gencerts (#1494556)
|
||||||
|
|
||||||
* Thu Sep 21 2017 Stephen Gallagher <sgallagh@redhat.com> - 2.4.27-11
|
* Thu Sep 21 2017 Stephen Gallagher <sgallagh@redhat.com> - 2.4.27-11
|
||||||
- Require sscg 2.2.0 for creating service and CA certificates together
|
- Require sscg 2.2.0 for creating service and CA certificates together
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user