Skip to content

Instantly share code, notes, and snippets.

@aespinosa
Created March 25, 2016 20:25
Show Gist options
  • Save aespinosa/7d0d6726ccfb31bbba4f to your computer and use it in GitHub Desktop.
Save aespinosa/7d0d6726ccfb31bbba4f to your computer and use it in GitHub Desktop.
RSA .pem public key to jwk
ruby -r'json/jwt' -e 'puts OpenSSL::PKey::RSA.new(STDIN.read).to_jwk.to_json'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment