Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get Pandora TLS Fingerprint
#!/bin/bash
##
## 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
@shefft

This comment has been minimized.

Copy link

@shefft shefft commented Jun 7, 2013

for Windows, just exchange /dev/null for NUL and remove or swap out the tr and cut as well

@pixster

This comment has been minimized.

Copy link

@pixster pixster commented May 25, 2014

This return the correct tls_fingerprint, but still getting the Login... Network error: TLS read failed.
This worked perfectly until I issued: mkfifo /home/pi/.config/pianobar/ctl That's when pianobar
quit working. Can't figure out how to reverse this problem. :(

Oh, and thanks for this script!

@isomorphisms

This comment has been minimized.

Copy link

@isomorphisms isomorphisms commented Jun 14, 2014

Thanks @r35krag0th. I'm experiencing the same problem as @pixster. Ubuntu 12.04.

@acepha

This comment has been minimized.

Copy link

@acepha acepha commented Dec 6, 2015

Thanks so much for this! They must have just updated the server with a new TLS Fingerprint. Found it right away with this code and back up listening to Pandora on my Raspberry Pi!

TLS Fingerprint as of 12/6/2015 12:00am EST. 13CC51AC0C31CD96C55015C76914360F7AC4100

sudo wget https://gist.github.com/r35krag0th/4173333/raw/649335cee5f8dab09a403a6ec4eb5dea03b76263/Get-TLS-Fingerprint.sh
sh Get-TLS-Fingerprint.sh

@Eucrates

This comment has been minimized.

Copy link

@Eucrates Eucrates commented Dec 6, 2015

@acepha, thanks for the update, I came here earlier today trying to figure out what went wrong. I'm still having trouble figuring out how/where to update the info though. I'm trying to follow along with the fixes over here: PromyLOPh/pianobar#321 but I'm still quite new to Linux. Any baby steps from here?

@acepha

This comment has been minimized.

Copy link

@acepha acepha commented Dec 7, 2015

@Eucrates
I am still a beginner myself but I can help you out with getting back into the config file for pianobar to change the TLS Fingerprint.

cd .config
cd pianobar
sudo nano config

This should open up the config file for pianobar
Scroll down to find your current tls_fingerprint
Update with the new tls_fingerprint

CTLR + X to Save and exit
Y to Save
Enter to confirm

You can also find it by open up File Manager...then find the .config folder...inside should be a pianobar folder...inside that is the config file for pianobar. Double clicking it will open it up in Leafpad. This should allow you to edit and save.

@bcorey

This comment has been minimized.

Copy link

@bcorey bcorey commented Jan 4, 2016

@acepha
I'm having a TLS fingerprint problem, except there is no pianobar folder inside the .config folder, so I can't change the fingerprint. Do you have any idea why this is, or how to get around it? I'm using Debian.

@firecat53

This comment has been minimized.

Copy link

@firecat53 firecat53 commented Jan 4, 2016

@bcorey Just create ~/.config/pianobar/config (cd ~/.config && mkdir pianobar && nano (or vi or whatever editor) pianobar/config) and add the "tls_fingerprint = xxxxx" line.

@bonelifer

This comment has been minimized.

Copy link

@bonelifer bonelifer commented Jan 29, 2016

@r35krag0th I've Modified this to automatically change the tls_fingerprint for you: https://gist.github.com/bonelifer/9d12e13b8465c213d2d2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.