-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
failed to load public key: PEM_read_bio_PUBKEY failed #17
Comments
A certificate is a superset of a public key. Amongst the public key, it also contains information like the issuer, expected uses and so on. You can use openssl to extract the public key like so:
The extracted public key works fine, I just tried it. |
It indeed works, thanks, do you happen to have a code snippet to do the above without resorting to command line? |
I have not tried it, but this: |
Thanks, perhaps consider having this build-in? :) |
Hi,
I tried to change the sources to use PEM_read_bio_RSA_PUBKEY or PEM_read_bio_RSAPublicKey, to no effect, I'm trying to verify the signature of this token.
Tried to change CERTIFICATE to PUBLIC KEY, but no luck, any tips?
Thanks
The text was updated successfully, but these errors were encountered: