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

Alternative Endpoint for x509.ParsePKIXPublicKey that allows non-fatal errors #740

Open
suever opened this issue Nov 3, 2020 · 0 comments
Labels

Comments

@suever
Copy link

suever commented Nov 3, 2020

I have to parse a P-192 public key and although it is not implemented in the upstream x509 package, this repo is able to parse it properly and flags the fact that it is an insecure algorithm as a non-fatal error; however, the ParsePKIXPublicKey function makes these non-fatal errors fatal errors, preventing the parsing of a P-192 key. The comment mentions that this is "for this entrypoint"; however, I don't see another entry point that would allow for more lax parsing of these public keys.

Any ideas on an alternative entrypoint for parsing these keys?

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

No branches or pull requests

2 participants