From d5c7b22b53192ffed685f3b8362ff8e8076c290c Mon Sep 17 00:00:00 2001 From: Artur Neumann Date: Thu, 13 Feb 2025 12:09:11 +0545 Subject: [PATCH] follow redirects when downloading certificate --- hooks/timestamping | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/timestamping b/hooks/timestamping index 30daeda..a2756f2 100755 --- a/hooks/timestamping +++ b/hooks/timestamping @@ -553,7 +553,7 @@ download_crls_for_chain() { local URL=$(openssl x509 -inform PEM -in $EXTRACTED_CERT -text -noout \ | awk '/CRL Distribution Points:/{f=1} f && /URI:/ {print; exit}' \ | sed 's/^.*URI://1') - if curl "$URL" --output "$CRL_TMP" &> "$OUT_STREAM"; then + if curl -L "$URL" --output "$CRL_TMP" &> "$OUT_STREAM"; then if openssl crl -in "$CRL_TMP" -inform DER -noout &> "$OUT_STREAM"; then openssl crl -in "$CRL_TMP" -inform DER >> "$OUTPUT_FILE" elif openssl crl -in "$CRL_TMP" -inform PEM -noout &> "$OUT_STREAM"; then