output certs to stderr on Tor verification failure
This commit is contained in:
parent
ccfc936c4a
commit
418a53cd4f
|
@ -103,7 +103,12 @@ while read -r host; do
|
||||||
>&2 echo "$host_and_port - Tor connection failed"
|
>&2 echo "$host_and_port - Tor connection failed"
|
||||||
elif [ -n "$cert" ] && [ "$cert" != "$cert_via_tor" ]; then
|
elif [ -n "$cert" ] && [ "$cert" != "$cert_via_tor" ]; then
|
||||||
>&2 echo "$host_and_port - Tor VERIFICATION FAILED (certs don't match)!!!"
|
>&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
|
continue
|
||||||
else
|
else
|
||||||
# If direct connection failed and Tor connection succeeded,
|
# If direct connection failed and Tor connection succeeded,
|
||||||
|
|
Loading…
Reference in New Issue