Skip to content

Commit

Permalink
Making the python tolerant of multiple submissions of the same alg
Browse files Browse the repository at this point in the history
  • Loading branch information
ounsworth committed Jul 22, 2024
1 parent 2d5ee59 commit e7ca447
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/test_certs_r3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,6 @@ test_ta () {
tafile=$1
resultsfile=$2

printf "\nTesting %s\n" $tafile
printf "\nTesting %s\n" $tafile >> $logfile

# openssl always exits with 0, so we can't use exit status to tell if the cert was valid :/
ossl_output=$(openssl verify -check_ss_sig -verbose -CAfile $tafile $tafile 2>&1)
ossl_status=$?

# log it to file and to stdout
echo "$ossl_output" >> $logfile
echo "$ossl_output"


tafileBasename=$(basename $tafile)

# strip off the file suffix to get the OID name
Expand All @@ -49,6 +37,20 @@ test_ta () {
return
fi

printf "\nTesting %s\n" $tafile
printf "\nTesting %s\n" $tafile >> $logfile

# openssl always exits with 0, so we can't use exit status to tell if the cert was valid :/
ossl_output=$(openssl verify -check_ss_sig -verbose -CAfile $tafile $tafile 2>&1)
ossl_status=$?

# log it to file and to stdout
echo "$ossl_output" >> $logfile
echo "$ossl_output"




alreadyTestedOIDs=${alreadyTestedOIDs}$oid";"

# test for an error and print a link in the results CSV file
Expand Down

0 comments on commit e7ca447

Please sign in to comment.