If a new TSA is added for the first time, timestamp tokens need
to be requested twice for it (once with embedded certificate chain and once without). If such a TSA url signs tokens using multiple, alternating certificates, more than two iterations of token requests might be necessary.
This commit is contained in:
@@ -160,7 +160,7 @@ fi
|
|||||||
|
|
||||||
DIGEST_TO_TIMESTAMP=''
|
DIGEST_TO_TIMESTAMP=''
|
||||||
|
|
||||||
for ((i=0; i<3; i++)); do
|
for ((i=0;; i++)); do
|
||||||
#add all ltv files
|
#add all ltv files
|
||||||
if ls "$TMP_LTV_DIR"/*/* &> "$OUT_STREAM"; then
|
if ls "$TMP_LTV_DIR"/*/* &> "$OUT_STREAM"; then
|
||||||
ls "$TMP_LTV_DIR"/*/* | while read SOURCE_FILE; do
|
ls "$TMP_LTV_DIR"/*/* | while read SOURCE_FILE; do
|
||||||
@@ -180,10 +180,7 @@ for ((i=0; i<3; i++)); do
|
|||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#assert that this line is never reached in the second loop
|
if [ $i -gt 0 ]; then
|
||||||
assert "[ $i -lt 2 ]" "after second iteration there must be no new LTV data."
|
|
||||||
|
|
||||||
if [ $i -eq 1 ]; then
|
|
||||||
echo_info "New LTV data has been added, need to request token again."
|
echo_info "New LTV data has been added, need to request token again."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user