From 2733e13e1c2ad0a16668e9d98b63c10eb52f99c3 Mon Sep 17 00:00:00 2001 From: Joni Hahkala Date: Mon, 14 May 2012 23:47:10 +0000 Subject: [PATCH] switch to use new hash instead of old one --- bin/generate-test-certificates.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/generate-test-certificates.sh b/bin/generate-test-certificates.sh index e5e7bfc..4fb5617 100755 --- a/bin/generate-test-certificates.sh +++ b/bin/generate-test-certificates.sh @@ -517,7 +517,9 @@ function add_ca_grid_sec { if [ x"`openssl version`" \< x"OpenSSL 1.0.0" ]; then hash=$(openssl x509 -hash -noout -in $1-ca/$1.cert) else - hash=$(openssl x509 -subject_hash_old -noout -in $1-ca/$1.cert) + if [ ${USENEWHASH} == 'no' ]; then + hash=$(openssl x509 -subject_hash_old -noout -in $1-ca/$1.cert) + fi fi cp $1-ca/$1.cert grid-security/certificates/${hash}.0 cp $1-ca/$1.crl grid-security/certificates/${hash}.r0 @@ -1173,6 +1175,7 @@ EXTRACERTS=${EXTRACERTS:-5} VOMS='no' # if we only show environmental settings ONLYENV='no' +USENEWHASH='no' while true; do case "$1" in @@ -1187,6 +1190,10 @@ while true; do CATYPES='trusted' shift ;; + -n|--new) + USENEWHASH='true' + shift + ;; -e|--extra) shift EXTRACERTS=$1 -- 1.8.2.3