forgot the server proxy lifetime extension
authorJoni Hahkala <joni.hahkala@cern.ch>
Mon, 2 Nov 2009 12:59:23 +0000 (12:59 +0000)
committerJoni Hahkala <joni.hahkala@cern.ch>
Mon, 2 Nov 2009 12:59:23 +0000 (12:59 +0000)
bin/generate-test-certificates.sh

index 1696ab9..7eae449 100755 (executable)
@@ -455,7 +455,7 @@ function create_bad {
     # create a cert which is not vaild yet
     export CN="bad future client"
     theyear=`date +%Y` 
-    let "theyear += 1 "
+    let "theyear += 10 "
     valid=${theyear:2}`date +%m%d`000000Z
     CMD="openssl req -out $CERT_DIR/bad_future.req -newkey rsa:$bits -new -keyout $CERT_DIR/bad_future.priv -config $CA_DIR/req_conf_future.cnf"
     echo $CMD; eval $CMD
@@ -603,10 +603,10 @@ function create_all {
 
     create_cert $CERT_DIR/${catype}_${TYPE} "$catype ${CTYPE}" ${TYPE} $DAYS
 
-    create_cert_proxy $CERT_DIR/${catype}_${TYPE} "$catype ${CTYPE}" proxy "proxy" 1
+    create_cert_proxy $CERT_DIR/${catype}_${TYPE} "$catype ${CTYPE}" proxy "proxy" $PROXY_VALIDITY
     create_cert_proxy $CERT_DIR/${catype}_${TYPE} "$catype ${CTYPE}" proxy_exp "expired proxy" -1
 
-    create_cert_proxy_proxy $CERT_DIR/${catype}_${TYPE} "$catype ${CTYPE}" proxy_proxy "proxy" 1 proxy
+    create_cert_proxy_proxy $CERT_DIR/${catype}_${TYPE} "$catype ${CTYPE}" proxy_proxy "proxy" $PROXY_VALIDITY proxy
     create_cert_proxy_proxy $CERT_DIR/${catype}_${TYPE} "$catype ${CTYPE}" proxy_proxy_exp "expired proxy" -1 proxy_exp
 
     TYPE="altname"