summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcontrib/tls_fingerprint.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/tls_fingerprint.sh b/contrib/tls_fingerprint.sh
new file mode 100755
index 0000000..e67ab48
--- /dev/null
+++ b/contrib/tls_fingerprint.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+##
+## A simple little shell script that will return the current
+## fingerprint on the SSL certificate. It's crude but works :D
+##
+## Author: Bob Saska (r35krag0th) <git@r35.net>
+
+openssl s_client -connect tuner.pandora.com:443 < /dev/null 2> /dev/null | \
+ openssl x509 -noout -fingerprint | tr -d ':' | cut -d'=' -f2