summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsign-request.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/sign-request.in b/sign-request.in
index c4d9ba7..3de4e56 100755
--- a/sign-request.in
+++ b/sign-request.in
@@ -19,7 +19,7 @@ trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT
while read -r csr; do
csr_local="${tmp_dir}/${csr##*/}"
- curl -Ss --insecure "${csr}" -o "${csr_local}"
+ curl --connect-timeout 10 -Ss --insecure "${csr}" -o "${csr_local}"
if ! content=$(
openssl req -text -noout -verify -in "${csr_local}" 2>/dev/null
); then
@@ -78,7 +78,7 @@ while read -r csr; do
ok_sans=$(
printf '%s\n' "${cn}" "${sans}" \
| while read -r san; do
- if ! curl -Ss --insecure 'https://'"${san}/${csr#*//*/}" \
+ if ! curl --connect-timeout 10 -Ss --insecure 'https://'"${san}/${csr#*//*/}" \
| diff -q - "${csr_local}"; then
>&2 printf 'invalid san "%s" - skipping\n' "${san}"
rm "${csr_local}"