Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DER from x509 (auth0) #62

Closed
aep opened this issue Sep 2, 2018 · 4 comments
Closed

DER from x509 (auth0) #62

aep opened this issue Sep 2, 2018 · 4 comments

Comments

@aep
Copy link

aep commented Sep 2, 2018

trying to use this with auth0, where its only possible to get the x509 certificate that is used for signing

openssl x509 -in auth0.pem -outform DER -out auth0.der

doesnt seem to work. i'm getting ' Error(InvalidSignature)'.
the same token validates fine on jwt.io with that certificate.

@aep aep changed the title DER from pubkey only (auth0) DER from x509 (auth0) Sep 2, 2018
@aep
Copy link
Author

aep commented Sep 2, 2018

this seems to work, but i'm not sure if this is safe because it strips the rest of the certificate:

openssl x509 -pubkey -noout -in  auth0.pem  > auth0_pkey.pem
openssl rsa -pubin -in auth0_pkey.pem  -RSAPublicKey_out -outform DER -out auth0.der

@Keats
Copy link
Owner

Keats commented Oct 22, 2018

Sorry for the delay

The commands in the last message look fine to me

@Keats
Copy link
Owner

Keats commented Feb 4, 2019

@aep can this be closed?

@aep
Copy link
Author

aep commented Feb 4, 2019

yes thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants