Skip to content

Instantly share code, notes, and snippets.

View joaoluiznaufel's full-sized avatar

João Luiz Castro Naufel joaoluiznaufel

  • João Luiz Castro Naufel
  • Almere - NL
View GitHub Profile
@guitarrapc
guitarrapc / _get_github_oidc_thumbprint.sh
Last active May 26, 2024 18:45
Get Thumbprint of GitHub OIDC, updated on 2022/01/13.
$ openssl s_client -servername token.actions.githubusercontent.com -showcerts -connect token.actions.githubusercontent.com:443 < /dev/null 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sed "0,/-END CERTIFICATE-/d" > certificate.crt
$ openssl x509 -in certificate.crt -fingerprint -noout | cut -f2 -d'=' | tr -d ':' | tr '[:upper:]' '[:lower:]'
6938fd4d98bab03faadb97b34396831e3780aea1