summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorBob Saska <git@r35.net>2012-11-30 09:20:17 -0600
committerLars-Dominik Braun <lars@6xq.net>2012-12-01 13:34:53 +0100
commit80ce6dd23c9a2f6773277ddd1b9a03bac41492ad (patch)
treee41a2395e373169ec1edea266b4ad20f83546f00 /contrib
parentd33a389bf256821f22cf80a9d630c18cef42870d (diff)
downloadpianobar-80ce6dd23c9a2f6773277ddd1b9a03bac41492ad.tar.gz
pianobar-80ce6dd23c9a2f6773277ddd1b9a03bac41492ad.tar.bz2
pianobar-80ce6dd23c9a2f6773277ddd1b9a03bac41492ad.zip
Added script that retrieves current TLS fingerprint
Needs openssl. Closes #325.
Diffstat (limited to 'contrib')
-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