[Fedora-directory-commits] mod_nss gencert.in,1.1,1.2
Robert Crittenden (rcritten)
fedora-directory-commits at redhat.com
Tue Jun 20 20:42:23 UTC 2006
- Previous message (by thread): [Fedora-directory-commits] mod_nss mod_nss.c, 1.11, 1.12 mod_nss.h, 1.11, 1.12 nss_engine_config.c, 1.10, 1.11 nss_engine_init.c, 1.18, 1.19 nss_engine_pphrase.c, 1.5, 1.6
- Next message (by thread): [Fedora-directory-commits] mod_nss gencert.in,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: rcritten
Update of /cvs/dirsec/mod_nss
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10532
Modified Files:
gencert.in
Log Message:
Drop dependency on ksh and use bash instead.
Improve hostname detection on Solaris by using the script
/usr/lib/mail/sh/check-hostname if it exists.
Index: gencert.in
===================================================================
RCS file: /cvs/dirsec/mod_nss/gencert.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- gencert.in 25 May 2005 21:01:13 -0000 1.1
+++ gencert.in 20 Jun 2006 20:42:21 -0000 1.2
@@ -1,4 +1,4 @@
-#!/bin/ksh
+#!/bin/bash
# Copyright 2001-2004 The Apache Software Foundation
#
@@ -35,6 +35,14 @@
getFQDN() {
max=0
maxhost=
+ OS=`uname -s`
+ if [ $OS == "SunOS" ]; then
+ if [ -x /usr/lib/mail/sh/check-hostname ]; then
+ maxhost=`/usr/lib/mail/sh/check-hostname | awk 'BEGIN { FS=" " } { if ($3 == "OK:") { print $7 } }'`
+ fi
+ echo $maxhost
+ return
+ fi
defhost=`hostname`
hosthost=`host $defhost | grep -v "not found" | awk '{print $1}'`
for host in $defhost $hosthost `hostname -f` `hostname -a` ; do
@@ -97,7 +105,7 @@
# 5 9 n -> Cert signing key
# y 10 y -> basic constraints: CA cert
# 5 6 7 9 n -> SSL, S/MIME, Object signing CA
-echo "5\n9\nn\ny\n10\ny\n5\n6\n7\n9\nn\n" | \
+echo -e "5\n9\nn\ny\n10\ny\n5\n6\n7\n9\nn\n" | \
$CERTUTIL -S -d $DEST -n cacert \
-s "$CA_CERTDN" \
-x \
@@ -119,7 +127,7 @@
let CERTSERIAL=CERTSERIAL+1
# 0 2 9 n -> Key usage: Key Encipherment, Digital Signature
# 0 9 n -> SSL Client
-echo "0\n2\n9\nn\n0\n9\nn\n" | \
+echo -e "0\n2\n9\nn\n0\n9\nn\n" | \
$CERTUTIL -S -d $DEST -n alpha \
-s "$ALPHA_CERTDN" \
-c cacert \
@@ -149,7 +157,7 @@
echo "Generating server certificate"
echo "#####################################################################"
let CERTSERIAL=CERTSERIAL+1
-echo "2\n9\nn\n1\n9\nn\n" | \
+echo -e "2\n9\nn\n1\n9\nn\n" | \
$CERTUTIL -C -d $DEST \
-c cacert \
-i $DEST/tmpcertreq \
- Previous message (by thread): [Fedora-directory-commits] mod_nss mod_nss.c, 1.11, 1.12 mod_nss.h, 1.11, 1.12 nss_engine_config.c, 1.10, 1.11 nss_engine_init.c, 1.18, 1.19 nss_engine_pphrase.c, 1.5, 1.6
- Next message (by thread): [Fedora-directory-commits] mod_nss gencert.in,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Fedora-directory-commits
mailing list