diff --git a/SOURCES/mod_nss-SSLEngine-off.patch b/SOURCES/mod_nss-SSLEngine-off.patch new file mode 100644 index 0000000..950fcc9 --- /dev/null +++ b/SOURCES/mod_nss-SSLEngine-off.patch @@ -0,0 +1,13 @@ +diff -rupN mod_nss-1.0.8.orig/nss.conf.in mod_nss-1.0.8.patched/nss.conf.in +--- mod_nss-1.0.8.orig/nss.conf.in 2013-11-12 14:07:54.000000000 -0800 ++++ mod_nss-1.0.8.patched/nss.conf.in 2013-11-12 14:31:28.000000000 -0800 +@@ -99,6 +99,9 @@ LogLevel warn + + # SSL Engine Switch: + # Enable/Disable SSL for this virtual host. ++ ++ SSLEngine off ++ + NSSEngine on + + # SSL Cipher Suite: diff --git a/SOURCES/mod_nss-nssverifyclient.patch b/SOURCES/mod_nss-nssverifyclient.patch new file mode 100644 index 0000000..d9858c3 --- /dev/null +++ b/SOURCES/mod_nss-nssverifyclient.patch @@ -0,0 +1,12 @@ +diff -rupN mod_nss-1.0.8.patched/nss_engine_kernel.c mod_nss-1.0.8.989724/nss_engine_kernel.c +--- mod_nss-1.0.8.patched/nss_engine_kernel.c 2007-05-31 14:36:03.000000000 -0700 ++++ mod_nss-1.0.8.989724/nss_engine_kernel.c 2013-10-25 13:32:47.000000000 -0700 +@@ -275,7 +275,7 @@ int nss_hook_Access(request_rec *r) + + if (verify == SSL_CVERIFY_REQUIRE) { + SSL_OptionSet(ssl, SSL_REQUEST_CERTIFICATE, PR_TRUE); +- SSL_OptionSet(ssl, SSL_REQUIRE_CERTIFICATE, SSL_REQUIRE_NO_ERROR); ++ SSL_OptionSet(ssl, SSL_REQUIRE_CERTIFICATE, SSL_REQUIRE_ALWAYS); + } else if (verify == SSL_CVERIFY_OPTIONAL) { + SSL_OptionSet(ssl, SSL_REQUEST_CERTIFICATE, PR_TRUE); + SSL_OptionSet(ssl, SSL_REQUIRE_CERTIFICATE, SSL_REQUIRE_NEVER); diff --git a/SOURCES/mod_nss-unused-filter_ctx.patch b/SOURCES/mod_nss-unused-filter_ctx.patch new file mode 100644 index 0000000..2def292 --- /dev/null +++ b/SOURCES/mod_nss-unused-filter_ctx.patch @@ -0,0 +1,18 @@ +diff -rupN mod_nss-1.0.8.orig/nss_engine_io.c mod_nss-1.0.8.patched/nss_engine_io.c +--- mod_nss-1.0.8.orig/nss_engine_io.c 2013-11-12 13:46:32.000000000 -0800 ++++ mod_nss-1.0.8.patched/nss_engine_io.c 2013-11-12 14:01:15.000000000 -0800 +@@ -1354,14 +1354,11 @@ nss_AuthCertificate(void *arg, PRFileDes + PRBool checksig, PRBool isServer) + { + SECStatus status; +- nss_filter_ctx_t *filter_ctx; + + if (!arg || !socket) { + return SECFailure; + } + +- filter_ctx = (nss_filter_ctx_t *)(socket->lower->secret); +- + status = SSL_AuthCertificate(arg, socket, checksig, isServer); + + /* The certificate is copied to sslconn->client_cert in diff --git a/SOURCES/mod_nss-usecases.patch b/SOURCES/mod_nss-usecases.patch new file mode 100644 index 0000000..8427fe6 --- /dev/null +++ b/SOURCES/mod_nss-usecases.patch @@ -0,0 +1,322 @@ +diff -rupN mod_nss-1.0.8.srpm/docs/mod_nss.html mod_nss-1.0.8.patched/docs/mod_nss.html +--- mod_nss-1.0.8.srpm/docs/mod_nss.html 2013-11-27 12:03:05.000000000 -0800 ++++ mod_nss-1.0.8.patched/docs/mod_nss.html 2013-11-27 17:27:08.000000000 -0800 +@@ -33,6 +33,7 @@ + Database Management
+ Why is SSLv2 disabled?
+ Frequently Asked Questions
++Sample Use Cases
+ +

Introduction

+ The mod_ssl package was +@@ -1056,7 +1057,7 @@ man-in-the-middle attack so leaving this +
+ Example
+
+-NSSProcyCheckPeerCN on
++NSSProxyCheckPeerCN on
+
+ +

Environment Variables

+@@ -1467,6 +1468,300 @@ Q. Does mod_nss support mod_proxy?
+
+ A. Yes but you need to make sure that mod_ssl is not loaded. mod_proxy + provides a single interface for SSL providers and mod_nss defers to +-mod_ssl if it is loaded. ++mod_ssl if it is loaded.
++ ++

Sample Use Cases

++

I. Restart Apache using the NSS Internal Software Token

++ ++

II. Restart Apache using the NSS FIPS Software Token

++ + + diff --git a/SPECS/mod_nss.spec b/SPECS/mod_nss.spec index 6b0669c..36c758e 100644 --- a/SPECS/mod_nss.spec +++ b/SPECS/mod_nss.spec @@ -6,7 +6,7 @@ Name: mod_nss Version: 1.0.8 -Release: 25%{?dist} +Release: 32%{?dist} Summary: SSL/TLS module for the Apache HTTP server Group: System Environment/Daemons License: ASL 2.0 @@ -48,6 +48,10 @@ Patch17: mod_nss-tlsv1_1.patch Patch18: mod_nss-sslmultiproxy.patch Patch19: mod_nss-sslmultiproxy_2.patch Patch20: mod_nss-docs-fix.patch +Patch21: mod_nss-SSLEngine-off.patch +Patch22: mod_nss-unused-filter_ctx.patch +Patch23: mod_nss-nssverifyclient.patch +Patch24: mod_nss-usecases.patch %description The mod_nss module provides strong cryptography for the Apache Web @@ -82,6 +86,10 @@ security library. %patch18 -p1 -b .sslmultiproxy %endif %patch20 -p1 -b .docs-fix +%patch21 -p1 -b .SSLEngine-off +%patch22 -p1 -b .unused-filter_ctx +%patch23 -p1 -b .nssverifyclient +%patch24 -p1 -b .usecases # Touch expression parser sources to prevent regenerating it touch nss_expr_*.[chyl] @@ -192,11 +200,45 @@ fi %{_sbindir}/gencert %changelog +* Fri Jan 24 2014 Daniel Mach - 1.0.8-32 +- Mass rebuild 2014-01-24 + +* Mon Jan 13 2014 Matthew Harmsen - 1.0.8-31 +- Resolves: rhbz #1029360 +- Bugzilla Bug #1029360 - ambiguous/invalid ENVR in httpd-mmn Provides/Requires +- corrected typo on date + +* Mon Jan 13 2014 Matthew Harmsen - 1.0.8-30 +- Resolves: rhbz #1029360 +- Bugzilla Bug #1029360 - ambiguous/invalid ENVR in httpd-mmn Provides/Requires + +* Fri Dec 27 2013 Daniel Mach - 1.0.8-29 +- Mass rebuild 2013-12-27 + +* Wed Nov 27 2013 Matthew Harmsen - 1.0.8-28 +- Resolves: rhbz #1030276 +- [mod_nss-usecases.patch] +- Bugzilla Bug #1030276 - mod_nss not working in FIPS mode + +* Fri Nov 15 2013 Rob Crittenden - 1.0.8-27 +- Resolves: CVE-2013-4566 +- Bugzilla Bug #1024536 - mod_nss: incorrect handling of NSSVerifyClient in + directory context [rhel-7.0] (rcritten) +- Bugzilla Bug #1030845 - mod_nss: do not use %%configure in %%changelog + (mharmsen) + +* Tue Nov 12 2013 Joe Orton - 1.0.8-26 +- [mod_nss-SSLEngine-off.patch] +- Bugzilla Bug #1029042 - Implicit SSLEngine for 443 port breaks mod_nss + configuration (jorton) +- [mod_nss-unused-filter_ctx.patch] +- Bugzilla Bug #1029665 - Remove unused variable 'filter_ctx' (mharmsen) + * Fri Nov 1 2013 Tomas Hoger - 1.0.8-25 - Bugzilla Bug #1025317 - mod_nss: documentation formatting fixes [rhel-7] * Thu Oct 24 2013 Matthew Harmsen - 1.0.8-24 -- Add '--enable-ecc' option to '%configure' line under '%build' section of +- Add '--enable-ecc' option to %%configure line under %%build section of this spec file (mharmsen) - Bumped version build/runtime requirements for NSPR and NSS (mharmsen) - [mod_nss-PK11_ListCerts_2.patch]