diff options
-rw-r--r-- | Makefile.am | 7 | ||||
-rw-r--r-- | Makefile.in | 73 | ||||
-rw-r--r-- | gencert.8 | 39 |
3 files changed, 112 insertions, 7 deletions
diff --git a/Makefile.am b/Makefile.am index 61d1150..67b8fcc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -5,6 +5,13 @@ bin_PROGRAMS = nss_pcache nss_pcache_SOURCES = nss_pcache.c +man8_MANS = \ + gencert.8 \ + $(NULL) + +install-data-hook: + @for i in $(man8_MANS) ; do gzip -f $(DESTDIR)$(man8dir)/$$i ; done + ## Define the source file for the module libmodnss_la_SOURCES = mod_nss.c nss_engine_config.c nss_engine_init.c nss_engine_io.c nss_engine_kernel.c nss_engine_log.c nss_engine_pphrase.c nss_engine_vars.c nss_expr.c nss_expr_eval.c nss_expr_parse.y nss_expr_scan.l nss_util.c nss_engine_rand.c libmodnss_la_LDFLAGS = -module -avoid-version diff --git a/Makefile.in b/Makefile.in index 77c820b..4b0b2c7 100644 --- a/Makefile.in +++ b/Makefile.in @@ -116,6 +116,11 @@ bin_PROGRAMS = nss_pcache nss_pcache_SOURCES = nss_pcache.c +man8_MANS = \ + gencert.8 \ + $(NULL) + + libmodnss_la_SOURCES = mod_nss.c nss_engine_config.c nss_engine_init.c nss_engine_io.c nss_engine_kernel.c nss_engine_log.c nss_engine_pphrase.c nss_engine_vars.c nss_expr.c nss_expr_eval.c nss_expr_parse.y nss_expr_scan.l nss_util.c nss_engine_rand.c libmodnss_la_LDFLAGS = -module -avoid-version @@ -182,6 +187,9 @@ LTLEXCOMPILE = $(LIBTOOL) --mode=compile $(LEX) $(LFLAGS) $(AM_LFLAGS) YACCCOMPILE = $(YACC) $(YFLAGS) $(AM_YFLAGS) LTYACCCOMPILE = $(LIBTOOL) --mode=compile $(YACC) $(YFLAGS) $(AM_YFLAGS) DIST_SOURCES = $(libmodnss_la_SOURCES) $(nss_pcache_SOURCES) + +NROFF = nroff +MANS = $(man8_MANS) DIST_COMMON = README AUTHORS COPYING ChangeLog INSTALL Makefile.am \ Makefile.in NEWS TODO aclocal.m4 config.guess config.sub \ configure configure.in depcomp gencert.in install-sh ltmain.sh \ @@ -332,6 +340,49 @@ distclean-libtool: -rm -f libtool uninstall-info-am: +man8dir = $(mandir)/man8 +install-man8: $(man8_MANS) $(man_MANS) + @$(NORMAL_INSTALL) + $(mkinstalldirs) $(DESTDIR)$(man8dir) + @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \ + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ + for i in $$l2; do \ + case "$$i" in \ + *.8*) list="$$list $$i" ;; \ + esac; \ + done; \ + for i in $$list; do \ + if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ + else file=$$i; fi; \ + ext=`echo $$i | sed -e 's/^.*\\.//'`; \ + case "$$ext" in \ + 8*) ;; \ + *) ext='8' ;; \ + esac; \ + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ + inst=`echo $$inst | sed -e 's/^.*\///'`; \ + inst=`echo $$inst | sed '$(transform)'`.$$ext; \ + echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man8dir)/$$inst"; \ + $(INSTALL_DATA) $$file $(DESTDIR)$(man8dir)/$$inst; \ + done +uninstall-man8: + @$(NORMAL_UNINSTALL) + @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \ + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ + for i in $$l2; do \ + case "$$i" in \ + *.8*) list="$$list $$i" ;; \ + esac; \ + done; \ + for i in $$list; do \ + ext=`echo $$i | sed -e 's/^.*\\.//'`; \ + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ + inst=`echo $$inst | sed -e 's/^.*\///'`; \ + inst=`echo $$inst | sed '$(transform)'`.$$ext; \ + echo " rm -f $(DESTDIR)$(man8dir)/$$inst"; \ + rm -f $(DESTDIR)$(man8dir)/$$inst; \ + done + ETAGS = etags ETAGSFLAGS = @@ -458,12 +509,12 @@ distcleancheck: distclean exit 1; } >&2 check-am: all-am check: check-am -all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) +all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(MANS) install-binPROGRAMS: install-libLTLIBRARIES installdirs: - $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) + $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) $(DESTDIR)$(man8dir) install: install-am install-exec: install-exec-am @@ -508,13 +559,15 @@ info: info-am info-am: -install-data-am: +install-data-am: install-man + @$(NORMAL_INSTALL) + $(MAKE) $(AM_MAKEFLAGS) install-data-hook install-exec-am: install-binPROGRAMS install-libLTLIBRARIES install-info: install-info-am -install-man: +install-man: install-man8 installcheck-am: @@ -529,7 +582,9 @@ mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool uninstall-am: uninstall-binPROGRAMS uninstall-info-am \ - uninstall-libLTLIBRARIES + uninstall-libLTLIBRARIES uninstall-man + +uninstall-man: uninstall-man8 .PHONY: GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libLTLIBRARIES clean-libtool dist dist-all \ @@ -538,13 +593,17 @@ uninstall-am: uninstall-binPROGRAMS uninstall-info-am \ distclean-tags distcleancheck distdir dvi dvi-am info info-am \ install install-am install-binPROGRAMS install-data \ install-data-am install-exec install-exec-am install-info \ - install-info-am install-libLTLIBRARIES install-man \ + install-info-am install-libLTLIBRARIES install-man install-man8 \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ tags uninstall uninstall-am uninstall-binPROGRAMS \ - uninstall-info-am uninstall-libLTLIBRARIES + uninstall-info-am uninstall-libLTLIBRARIES uninstall-man \ + uninstall-man8 + +install-data-hook: + @for i in $(man8_MANS) ; do gzip -f $(DESTDIR)$(man8dir)/$$i ; done install-libLTLIBRARIES: libmodnss.la @APXS@ -i -a -n nss libmodnss.la diff --git a/gencert.8 b/gencert.8 new file mode 100644 index 0000000..0e44601 --- /dev/null +++ b/gencert.8 @@ -0,0 +1,39 @@ +.\" A man page for gencert +.\" +.\" Licensed under the Apache License, Version 2.0 (the "License"); +.\" you may not use this file except in compliance with the License. +.\" You may obtain a copy of the License at +.\" +.\" http://www.apache.org/licenses/LICENSE-2.0 +.\" +.\" 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. +.\" +.\" Author: Rob Crittenden <rcritten@redhat.com> +.\" +.TH "gencert" "8" "Feb 2 2011" "Rob Crittenden" "" +.SH "NAME" +gencert \- Generate a test NSS database for mod_nss +.SH "SYNOPSIS" +gencert \fIDIRECTORY\fR +.SH "DESCRIPTION" +A tool to generate self\-signed CA as well as server and user certificates for mod_nss testing. + +This is used to generate a default NSS database for the mod_nss Apache module. It does not test to see if an existing database already exists so use with care. + +gencert will generate a new NSS database and set an empty database password. + +It generates a self\-signed CA with the subject "CN=Certificate Shack, O=example.com, C=US" + +It also generates a certificate suitable for servers with the subject "CN=FQDN, O=example.com, C=US" and a user certificate with the subject "E=alpha@FQDN, CN=Frank Alpha, UID=alpha, OU=People, O=example.com, C=US". + +The nicknames it uses are: + +CA: cacert + +Server certificate: Server\-Cert + +User cert: alpha |