summaryrefslogtreecommitdiff
path: root/tor-exit-ssl-check
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2013-07-16 06:28:52 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2013-07-16 06:28:52 +0000
commit990965c69654f3caba5386dfcb876d60c7ce2987 (patch)
tree992648c70897d99d79030b04c290e7959b9ae88b /tor-exit-ssl-check
parentdcb8fe3d186533cdee8f9de47cf65057736e7728 (diff)
Use a specific prefix
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@633 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'tor-exit-ssl-check')
-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"