summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/http/cert-auth-conf
diff options
context:
space:
mode:
Diffstat (limited to 'sca-cpp/trunk/modules/http/cert-auth-conf')
-rwxr-xr-xsca-cpp/trunk/modules/http/cert-auth-conf6
1 files changed, 1 insertions, 5 deletions
diff --git a/sca-cpp/trunk/modules/http/cert-auth-conf b/sca-cpp/trunk/modules/http/cert-auth-conf
index 00494d99f2..c6720c7ae4 100755
--- a/sca-cpp/trunk/modules/http/cert-auth-conf
+++ b/sca-cpp/trunk/modules/http/cert-auth-conf
@@ -25,8 +25,6 @@ root=`readlink -f $1`
conf=`cat $root/conf/httpd.conf | grep "# Generated by: httpd-conf"`
host=`echo $conf | awk '{ print $6 }'`
-httpd_prefix=`cat $here/httpd.prefix`
-
# Generate authentication configuration
cat >>$root/conf/auth.conf <<EOF
# Generated by: cert-auth-conf $*
@@ -38,14 +36,12 @@ SSLVerifyDepth 1
AuthType Basic
AuthName "$host"
AuthBasicProvider file
-AuthUserFile "$root/conf/httpd.passwd"
Require valid-user
</Location>
EOF
-# Create certificate-based users
-touch $root/conf/httpd.passwd
+# Create password file and certificate-based users
cat >>$root/conf/httpd.passwd <<EOF
/C=US/ST=CA/L=San Francisco/O=$host/OU=server/CN=$host:\$1\$OXLyS...\$Owx8s2/m9/gfkcRVXzgoE/
/C=US/ST=CA/L=San Francisco/O=$host/OU=proxy/CN=$host:\$1\$OXLyS...\$Owx8s2/m9/gfkcRVXzgoE/