small fix to prevent clash between generated host certificate and the trusted_server...
authorJoni Hahkala <joni.hahkala@cern.ch>
Wed, 28 Jun 2006 16:22:31 +0000 (16:22 +0000)
committerJoni Hahkala <joni.hahkala@cern.ch>
Wed, 28 Jun 2006 16:22:31 +0000 (16:22 +0000)
bin/generate-test-certificates.sh

index 8ed79df..dd9d712 100755 (executable)
@@ -333,7 +333,7 @@ function create_some {
     fi
     
     # generating host certificate
-    create_cert $CERT_DIR/${catype}_server "$HOSTNAME" server $DAYS
+    create_cert $CERT_DIR/${catype}_host "$HOSTNAME" server $DAYS
 
     # generating CRL
     openssl ca -gencrl -crldays 10000 -out $CA_DIR/${catype}.crl -config $CA_CONF
@@ -354,8 +354,8 @@ pos_rights              globus  CA:sign
 cond_subjects           globus  '"$(echo "${subject_name:9}" | sed -e 's#/CN=.*$##')/*"'
 EOF
 
-    cp $CERT_DIR/${catype}_server.cert grid-security/hostcert.pem
-    openssl rsa -passin pass:$PASSWORD -in $CERT_DIR/${catype}_server.priv -out grid-security/hostkey.pem
+    cp $CERT_DIR/${catype}_host.cert grid-security/hostcert.pem
+    openssl rsa -passin pass:$PASSWORD -in $CERT_DIR/${catype}_host.priv -out grid-security/hostkey.pem
     chmod 400 grid-security/hostkey.pem
     
     if [ ! -d 'home' ]; then