Blame SOURCES/mod_revocator-man.patch

3515f1
diff -rupN mod_revocator-1.0.3.orig/crlhelper.8 mod_revocator-1.0.3/crlhelper.8
3515f1
--- mod_revocator-1.0.3.orig/crlhelper.8	1969-12-31 16:00:00.000000000 -0800
3515f1
+++ mod_revocator-1.0.3/crlhelper.8	2013-07-03 18:42:58.000000000 -0700
3515f1
@@ -0,0 +1,97 @@
3515f1
+.\" A man page for crlhelper
3515f1
+.\"
3515f1
+.\" Licensed under the Apache License, Version 2.0 (the "License");
3515f1
+.\" you may not use this file except in compliance with the License.
3515f1
+.\" You may obtain a copy of the License at
3515f1
+.\"
3515f1
+.\"      http://www.apache.org/licenses/LICENSE-2.0
3515f1
+.\"
3515f1
+.\" Unless required by applicable law or agreed to in writing, software
3515f1
+.\" distributed under the License is distributed on an "AS IS" BASIS,
3515f1
+.\" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3515f1
+.\" See the License for the specific language governing permissions and
3515f1
+.\" limitations under the License.
3515f1
+.\"
3515f1
+.\" Author: Rob Crittenden <rcritten@redhat.com>
3515f1
+.\"
3515f1
+.TH "crlhelper" "8" "Jul 3 2013" "Rob Crittenden" ""
3515f1
+.SH "NAME"
3515f1
+crlhelper \- Helper program used to store-and-forward CRLs
3515f1
+
3515f1
+.SH "SYNOPSIS"
3515f1
+crlhelper <semid> <parentpid> <directory> [prefix]
3515f1
+
3515f1
+.SH "DESCRIPTION"
3515f1
+A helper program used by the Apache \fBhttpd\fP mod_revocator plug-in to
3515f1
+store-and-forward CRLs from upstream to the various Apache processes in
3515f1
+the preform MPM. This saves each process from having to fetch the CRL itself.
3515f1
+This is not expected to be run by end-users.
3515f1
+.PP
3515f1
+The mod_revocator plug-in requires the mod_nss plug-in to also be registered
3515f1
+with this Apache \fBhttpd\fP process.
3515f1
+.PP
3515f1
+Whenever an Apache \fBhttpd\fP process configured to use the mod_revocator
3515f1
+plug-in is started, this program will be automatically invoked via reference
3515f1
+to the mod_revocator configuration file stored under
3515f1
+\fB/etc/httpd/conf.d/revocator.conf\fP which contains the following default
3515f1
+entry:
3515f1
+.IP
3515f1
+#   CRL Helper:
3515f1
+.br
3515f1
+#   This helper program does the actual CRL retrieval
3515f1
+.br
3515f1
+#
3515f1
+.br
3515f1
+#   NOTE:  Located at '/usr/bin/crlhelper' prior
3515f1
+.br
3515f1
+#          to 'mod_revocator-1.0.3-16'.
3515f1
+.br
3515f1
+#
3515f1
+.br
3515f1
+CRLHelper /usr/libexec/crlhelper
3515f1
+
3515f1
+.SH OPTIONS
3515f1
+.TP
3515f1
+.B <semid>
3515f1
+The semaphore which corresponds to the mod_revocator plug-in registered with the Apache \fBhttpd\fP process during startup.
3515f1
+.TP
3515f1
+.B <parentpid>
3515f1
+The primary parent pid of the Apache \fBhttpd\fP process into which both the mod_nss and mod_revocator plug-ins have been loaded.
3515f1
+.TP
3515f1
+.B <directory>
3515f1
+Since the mod_revocator plug-in depends upon the mod_nss plug-in being configured, this option specifies the destination directory of the NSS databases that will be associated with this executable specified by the following entry in the mod_nss plug-in's \fB/etc/httpd/conf.d/nss.conf\fP configuration file:
3515f1
+.IP
3515f1
+.TS
3515f1
+tab(;);
3515f1
+ll,ll.
3515f1
+;#   Server Certificate Database:
3515f1
+;#   The NSS security database directory that holds the
3515f1
+;#   certificates and keys. The database consists
3515f1
+;#   of 3 files: cert8.db, key3.db and secmod.db.
3515f1
+;#   Provide the directory that these files exist.
3515f1
+;NSSCertificateDatabase /etc/httpd/alias
3515f1
+.TE
3515f1
+.TP
3515f1
+.B [prefix]
3515f1
+Optional prefix to attach prior to the names of the NSS certificate and key databases contained in the directory referenced by the previous argument and specified by the following entry in mod_nss plug-in's \fB/etc/httpd/conf.d/nss.conf\fP configuration file (must be uncommented in order to be utilized):
3515f1
+.IP
3515f1
+.TS
3515f1
+tab(;);
3515f1
+ll,ll.
3515f1
+;#   Database Prefix:
3515f1
+;#   In order to be able to store multiple NSS databases
3515f1
+;#   in one directory they need unique names. This option
3515f1
+;#   sets the database prefix used for cert8.db and key3.db.
3515f1
+;#NSSDBPrefix my-prefix-
3515f1
+.TE
3515f1
+
3515f1
+.SH BUGS
3515f1
+Report bugs to http://bugzilla.redhat.com.
3515f1
+
3515f1
+.SH AUTHORS
3515f1
+Rob Crittenden <rcritten@redhat.com>.
3515f1
+
3515f1
+.SH COPYRIGHT
3515f1
+Copyright (c) 2013 Red Hat, Inc. This is licensed under the Apache License, Version 2.0 (the "License"); no one may use this file except in compliance with the License. A copy of this license is available at http://www.apache.org/licenses/LICENSE-2.0.
3515f1
+.PP
3515f1
+Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the License for the specific language governing permissions and limitations under the License.
3515f1
diff -rupN mod_revocator-1.0.3.orig/crlhelper.cpp mod_revocator-1.0.3/crlhelper.cpp
3515f1
--- mod_revocator-1.0.3.orig/crlhelper.cpp	2013-07-02 17:03:45.000000000 -0700
3515f1
+++ mod_revocator-1.0.3/crlhelper.cpp	2013-07-03 19:08:13.000000000 -0700
3515f1
@@ -127,7 +127,7 @@ int main(int argc, char ** argv)
3515f1
         close(fd++);
3515f1
 
3515f1
     if (argc < 4 || argc > 5) {
3515f1
-        fprintf(stderr, "Usage: crlhelper <semid> <parentpid> <directory> <prefix>\n");
3515f1
+        fprintf(stderr, "Usage: crlhelper <semid> <parentpid> <directory> [prefix]\n");
3515f1
         exit(1);
3515f1
     }
3515f1
 
3515f1
diff -rupN mod_revocator-1.0.3.orig/ldapget.8 mod_revocator-1.0.3/ldapget.8
3515f1
--- mod_revocator-1.0.3.orig/ldapget.8	1969-12-31 16:00:00.000000000 -0800
3515f1
+++ mod_revocator-1.0.3/ldapget.8	2013-07-03 19:23:11.000000000 -0700
3515f1
@@ -0,0 +1,76 @@
3515f1
+.\" A man page for ldapget
3515f1
+.\"
3515f1
+.\" Licensed under the Apache License, Version 2.0 (the "License");
3515f1
+.\" you may not use this file except in compliance with the License.
3515f1
+.\" You may obtain a copy of the License at
3515f1
+.\"
3515f1
+.\"      http://www.apache.org/licenses/LICENSE-2.0
3515f1
+.\"
3515f1
+.\" Unless required by applicable law or agreed to in writing, software
3515f1
+.\" distributed under the License is distributed on an "AS IS" BASIS,
3515f1
+.\" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3515f1
+.\" See the License for the specific language governing permissions and
3515f1
+.\" limitations under the License.
3515f1
+.\"
3515f1
+.\" Author: Rob Crittenden <rcritten@redhat.com>
3515f1
+.\"
3515f1
+.TH "ldapget" "8" "Jul 3 2013" "Rob Crittenden" ""
3515f1
+.SH "NAME"
3515f1
+ldapget \- Tool used to fetch URLs via LDAP/LDAPS
3515f1
+
3515f1
+.SH "SYNOPSIS"
3515f1
+ldapget [NSS database] <url>
3515f1
+
3515f1
+.SH "DESCRIPTION"
3515f1
+A tool supplied with the Apache \fBhttpd\fP mod_revocator plug-in used to demonstrate how CRLs can be fetched using LDAP/LDAPS without the use of any direct LDAP/LDAPS URLs.
3515f1
+.PP
3515f1
+The mod_revocator plug-in requires the mod_nss plug-in to also be registered
3515f1
+with this Apache \fBhttpd\fP process.
3515f1
+.PP
3515f1
+Prior to \fBmod_revocator-1.0.3-16\fP, this tool was located at \fB/usr/bin/ldapget\fP.
3515f1
+
3515f1
+.SH OPTIONS
3515f1
+.TP
3515f1
+.B [NSS database]
3515f1
+Optionally specifies the destination directory where the NSS databases reside.  If this parameter is not provided, the location specified in mod_nss plug-in's \fB/etc/httpd/conf.d/nss.conf\fP configuration file will be utilized:
3515f1
+.IP
3515f1
+.TS
3515f1
+tab(;);
3515f1
+ll,ll.
3515f1
+;#   Server Certificate Database:
3515f1
+;#   The NSS security database directory that holds the
3515f1
+;#   certificates and keys. The database consists
3515f1
+;#   of 3 files: cert8.db, key3.db and secmod.db.
3515f1
+;#   Provide the directory that these files exist.
3515f1
+;NSSCertificateDatabase /etc/httpd/alias
3515f1
+.TE
3515f1
+.TP
3515f1
+.B <url>
3515f1
+.br
3515f1
+The LDAP/LDAPS URL utilized to fetch the CRL.  The following entry in mod_revocator plug-in's \fB/etc/httpd/conf.d/revocator.conf\fP configuration file contains a sample utilization of this executable (the line containing \fBldapget\fP must be uncommented in order to be utilized):
3515f1
+.IP
3515f1
+.TS
3515f1
+tab(+);
3515f1
+ll,ll.
3515f1
++#   CRL URLs:
3515f1
++#   A space delimited list of URLs to retrieve and install.
3515f1
++#        protocol://urldata;update_interval;max_age
3515f1
++#CRLFile "ldap://ldap.example.com:5000/o=example.net?
3515f1
++usercertificate%3binary?sub?(sn=Jensen)??;30;30"
3515f1
++\fB#CRLFile "exec:///usr/sbin/ldapget|ldap://ldap.example.com:
3515f1
++3389/o=example.com?userCertificate%3bbinary?sub?
3515f1
++(uid=crl)??;30;30"\fP
3515f1
++#CRLFile "https://ca.example.com:1025/getCRL?op=
3515f1
++getCRL&issuepoint=MasterCRL;30;30"
3515f1
+.TE
3515f1
+
3515f1
+.SH BUGS
3515f1
+Report bugs to http://bugzilla.redhat.com.
3515f1
+
3515f1
+.SH AUTHORS
3515f1
+Rob Crittenden <rcritten@redhat.com>.
3515f1
+
3515f1
+.SH COPYRIGHT
3515f1
+Copyright (c) 2013 Red Hat, Inc. This is licensed under the Apache License, Version 2.0 (the "License"); no one may use this file except in compliance with the License. A copy of this license is available at http://www.apache.org/licenses/LICENSE-2.0.
3515f1
+.PP
3515f1
+Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the License for the specific language governing permissions and limitations under the License.
3515f1
diff -rupN mod_revocator-1.0.3.orig/ldapget.cpp mod_revocator-1.0.3/ldapget.cpp
3515f1
--- mod_revocator-1.0.3.orig/ldapget.cpp	2010-04-13 07:11:11.000000000 -0700
3515f1
+++ mod_revocator-1.0.3/ldapget.cpp	2013-07-03 19:08:38.000000000 -0700
3515f1
@@ -45,7 +45,7 @@ main( int argc, char **argv )
3515f1
     const char *url;
3515f1
 
3515f1
     if (argc < 2 || argc > 4) {
3515f1
-        printf("Usage: %s <NSS database> url\n", argv[0]);
3515f1
+        printf("Usage: %s [NSS database] <url>\n", argv[0]);
3515f1
         return 1;
3515f1
     }
3515f1
 
3515f1
diff -rupN mod_revocator-1.0.3.orig/revocator.conf mod_revocator-1.0.3/revocator.conf
3515f1
--- mod_revocator-1.0.3.orig/revocator.conf	2013-07-02 17:03:44.000000000 -0700
3515f1
+++ mod_revocator-1.0.3/revocator.conf	2013-07-03 17:53:11.000000000 -0700
3515f1
@@ -15,7 +15,10 @@ CRLUpdateCritical off
3515f1
 
3515f1
 #   CRL Helper:
3515f1
 #   This helper program does the actual CRL retrieval
3515f1
-CRLHelper /usr/bin/crlhelper
3515f1
+#
3515f1
+#   NOTE:  Located at '/usr/bin/crlhelper' prior to 'mod_revocator-1.0.3-16'.
3515f1
+#
3515f1
+CRLHelper /usr/libexec/crlhelper
3515f1
 
3515f1
 #   CRL URLs:
3515f1
 #   A space delimited list of URLs to retrieve and install.