summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Kaluza <hanzz.k@gmail.com>2011-08-10 08:04:14 +0200
committerJan Kaluza <hanzz.k@gmail.com>2011-08-10 08:04:14 +0200
commit2673a432a96a283fbd768866dbeb3be74c916637 (patch)
tree1953216a0939899de285087ca64c682a50a97903
parentbadeb4a5ecbb1a65f2abd61fd8f3747e43a13f4c (diff)
downloadhttpd-2673a432a96a283fbd768866dbeb3be74c916637.tar.gz
httpd-2673a432a96a283fbd768866dbeb3be74c916637.tar.xz
httpd-2673a432a96a283fbd768866dbeb3be74c916637.zip
fix #707917 - add httpd-ssl-pass-dialog to ask for SSL password using systemd
-rwxr-xr-xhttpd-ssl-pass-dialog3
-rw-r--r--httpd.spec12
-rw-r--r--ssl.conf2
3 files changed, 15 insertions, 2 deletions
diff --git a/httpd-ssl-pass-dialog b/httpd-ssl-pass-dialog
new file mode 100755
index 0000000..1e850cd
--- /dev/null
+++ b/httpd-ssl-pass-dialog
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec /bin/systemd-ask-password "Enter SSL pass phrase for $1 ($2) : "
diff --git a/httpd.spec b/httpd.spec
index 6ce31ad..f7df2cd 100644
--- a/httpd.spec
+++ b/httpd.spec
@@ -8,13 +8,14 @@
Summary: Apache HTTP Server
Name: httpd
Version: 2.2.19
-Release: 4%{?dist}
+Release: 5%{?dist}
URL: http://httpd.apache.org/
Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.gz
Source1: index.html
Source3: httpd.logrotate
Source4: httpd.init
Source5: httpd.sysconf
+Source6: httpd-ssl-pass-dialog
Source10: httpd.conf
Source11: ssl.conf
Source12: welcome.conf
@@ -320,6 +321,11 @@ mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
install -m755 $RPM_SOURCE_DIR/httpd.init \
$RPM_BUILD_ROOT/etc/rc.d/init.d/httpd
+# install http-ssl-pass-dialog
+mkdir -p $RPM_BUILD_ROOT/%{_libexecdir}
+install -m755 $RPM_SOURCE_DIR/httpd-ssl-pass-dialog \
+ $RPM_BUILD_ROOT/%{_libexecdir}/httpd-ssl-pass-dialog
+
# install log rotation stuff
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
install -m 644 -p $RPM_SOURCE_DIR/httpd.logrotate \
@@ -501,6 +507,7 @@ rm -rf $RPM_BUILD_ROOT
%attr(0600,apache,root) %ghost %{_localstatedir}/cache/mod_ssl/scache.dir
%attr(0600,apache,root) %ghost %{_localstatedir}/cache/mod_ssl/scache.pag
%attr(0600,apache,root) %ghost %{_localstatedir}/cache/mod_ssl/scache.sem
+%{_libexecdir}/httpd-ssl-pass-dialog
%files devel
%defattr(-,root,root)
@@ -512,6 +519,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/httpd/build/*.sh
%changelog
+* Wed Aug 10 2011 Jan Kaluza <jkaluza@redhat.com> - 2.2.19-5
+- fix #707917 - add httpd-ssl-pass-dialog to ask for SSL password using systemd
+
* Fri Jul 22 2011 Iain Arnell <iarnell@gmail.com> 1:2.2.19-4
- rebuild while rpm-4.9.1 is untagged to remove trailing slash in provided
directory names
diff --git a/ssl.conf b/ssl.conf
index 384c354..d335c89 100644
--- a/ssl.conf
+++ b/ssl.conf
@@ -28,7 +28,7 @@ Listen 443
# Configure the pass phrase gathering process.
# The filtering dialog program (`builtin' is a internal
# terminal dialog) has to provide the pass phrase on stdout.
-SSLPassPhraseDialog builtin
+SSLPassPhraseDialog exec:/usr/libexec/httpd-ssl-pass-dialog
# Inter-Process Session Cache:
# Configure the SSL Session Cache: First the mechanism