Browse Source

output certs to stderr on Tor verification failure

master
nervuri 2 months ago
parent
commit
418a53cd4f
Signed by: nervuri GPG Key ID: C4769EEA7BA61672
  1. 7
      get-certs.sh

7
get-certs.sh

@ -103,7 +103,12 @@ while read -r host; do
>&2 echo "$host_and_port - Tor connection failed"
elif [ -n "$cert" ] && [ "$cert" != "$cert_via_tor" ]; then
>&2 echo "$host_and_port - Tor VERIFICATION FAILED (certs don't match)!!!"
# In this case, don't save the certificate.
# In this case, don't save any certificate to file.
# Output both certificates to stderr instead.
>&2 echo "CERT:"
>&2 echo "$cert"
>&2 echo "CERT VIA TOR:"
>&2 echo "$cert_via_tor"
continue
else
# If direct connection failed and Tor connection succeeded,

Loading…
Cancel
Save