Skip to content

Instantly share code, notes, and snippets.

@mvanholsteijn
Last active December 18, 2017 13:49
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 mvanholsteijn/bd09d531c1f4e547fbcd20cdf0e62476 to your computer and use it in GitHub Desktop.
Save mvanholsteijn/bd09d531c1f4e547fbcd20cdf0e62476 to your computer and use it in GitHub Desktop.
Retrieve the public RSA key for the Auth0 tenant in PEM format as JSON String
AUTH0_DOMAIN=mvanholsteijn.eu.auth0.com
curl -sS https://$AUTH0_DOMAIN/pem | \
openssl x509 -pubkey -noout | \
tr -d '\r' | \
tr '\n' '|' | \
sed -e 's/|/\\n/g' | \
sed -e 's/^/"/' -e 's/$/"/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment