-
Notifications
You must be signed in to change notification settings - Fork 130
Fix: mark SAN as critical when subject is empty #311
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
Conversation
Part of istio#1431 Fails without rustls/rcgen#311
Seems reasonable to me! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this. I agree it's the right approach (and matches Go x509's behaviour - always reassuring).
Would you mind adding a small test w/ x509-parser to prevent regression? Something like generating two certs, both with SANs, but only one with a subject, and then asserting the criticality of the SAN ext matches expectation would be great.
I'll push a test commit for this in a moment. There's no use waiting on a test if it's quick to write. |
* Make csr test stricter and more correct Part of #1431 Fails without rustls/rcgen#311 * update rcgen Signed-off-by: Yuval Kohavi <[email protected]> * fix merge issue * format fix Signed-off-by: Yuval Kohavi <[email protected]> --------- Signed-off-by: Yuval Kohavi <[email protected]> Co-authored-by: John Howard <[email protected]>
…o#1550) * Make csr test stricter and more correct Part of istio#1431 Fails without rustls/rcgen#311 * update rcgen Signed-off-by: Yuval Kohavi <[email protected]> * fix merge issue * format fix Signed-off-by: Yuval Kohavi <[email protected]> --------- Signed-off-by: Yuval Kohavi <[email protected]> Co-authored-by: John Howard <[email protected]>
…1552) * Make csr test stricter and more correct Part of #1431 Fails without rustls/rcgen#311 * update rcgen * fix merge issue * format fix --------- Signed-off-by: Yuval Kohavi <[email protected]> Co-authored-by: John Howard <[email protected]>
Fixes #310