summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtor-exit-ssl-check8
1 files changed, 4 insertions, 4 deletions
diff --git a/tor-exit-ssl-check b/tor-exit-ssl-check
index 6af71e0..1a8b98c 100755
--- a/tor-exit-ssl-check
+++ b/tor-exit-ssl-check
@@ -143,19 +143,19 @@ expect_ok() {
fi
}
-[ -n "$cachedir" ] && find "$cachedir" -mmin +1400 -exec rm '{}' '+'
+[ -n "$cachedir" ] && find "$cachedir" -name "tesc3-*" -mmin +1400 -exec rm '{}' '+'
for ((i=0; i < ${#targets[@]}; i++)); do
host="${targets[$i]}"
[ "${host%%+([0-9])}" = "$host" ] && host="$host:443"
- if [ -n "$cachedir" ] && [ -e "$cachedir/$host" ] ; then
+ if [ -n "$cachedir" ] && [ -e "$cachedir/tesc3-$host" ] ; then
[ "$verbose" = 0 ] || echo "Using cached certificate for $host."
- cp "$cachedir/$host" "$tmpdir/cert-direct-$i"
+ cp "$cachedir/tesc3-$host" "$tmpdir/cert-direct-$i"
else
[ "$verbose" = 0 ] || echo "Directly to $host:"
openssl s_client -no_ticket -showcerts -connect "$host" < /dev/null 2>&1 | eatdata "$tmpdir/cert-direct-$i"
- [ -n "$cachedir" ] && cp "$tmpdir/cert-direct-$i" "$cachedir/$host"
+ [ -n "$cachedir" ] && cp "$tmpdir/cert-direct-$i" "$cachedir/tesc3-$host"
fi
egrep -v '(Session-ID|Master-Key|Start Time):' < "$tmpdir/cert-direct-$i" > "$tmpdir/cert-direct-$i.filtered"