Skip to content

Instantly share code, notes, and snippets.

@deckerego
Created June 29, 2023 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deckerego/46f6d56a683e3a484f040bc89069ac89 to your computer and use it in GitHub Desktop.
Save deckerego/46f6d56a683e3a484f040bc89069ac89 to your computer and use it in GitHub Desktop.
Find the TLS fingerprint for GitHub Actions token server
#!/bin/bash
openssl s_client -servername token.actions.githubusercontent.com -showcerts -connect token.actions.githubusercontent.com:443 2>/dev/null < /dev/null | \
openssl x509 -fingerprint -sha1 -noout | \
grep Fingerprint | \
tr -d ':' | \
tr '[:upper:]' '[:lower:]' | \
cut -f2 -d=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment