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

Name constraints reject too many things (www.pki.bayern.de doesn't seem to work) #20

Open
briansmith opened this issue Sep 8, 2016 · 1 comment

Comments

@briansmith
Copy link
Owner

verify_tls_cert just hangs (probably a bug in that simplistic program) and Rustls reports TLS error: WebPKIError(UnknownIssuer). May be related to name constraints and specifically the mismatched encoding issue described at https://bugzilla.mozilla.org/show_bug.cgi?id=1256073.

@briansmith briansmith changed the title www.pki.bayern.de doesn't seem to work Name constraints reject too many things (www.pki.bayern.de doesn't seem to work) May 1, 2017
@briansmith
Copy link
Owner Author

See also rustls/webpki-roots#7. I probably borked the name constraint logic when I was simplifying it from what I implemented in mozilla::pkix.

bnoordhuis added a commit to bnoordhuis/webpki that referenced this issue May 1, 2021
There were two bugs. webpki didn't:

1. read the X.509 Name Constraints field in its entirety, nor

2. check the certificate subject against the constraints correctly

(1) is a simple fix, (2) requires reading the Common Name from the
certificate.

Closes briansmith#20, briansmith#134.
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

1 participant