Skip to content

Conversation

howardjohn
Copy link
Contributor

Fixes #310

howardjohn added a commit to howardjohn/ztunnel that referenced this pull request Jan 17, 2025
@djc
Copy link
Member

djc commented Jan 18, 2025

Seems reasonable to me!

Copy link
Member

@cpu cpu left a 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.

@cpu
Copy link
Member

cpu commented Jan 19, 2025

Would you mind adding a small test w/ x509-parser to prevent regression?

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.

@cpu cpu enabled auto-merge January 19, 2025 16:35
@cpu cpu added this pull request to the merge queue Jan 19, 2025
Merged via the queue into rustls:main with commit 611340f Jan 19, 2025
15 checks passed
istio-testing pushed a commit to istio/ztunnel that referenced this pull request May 7, 2025
* 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]>
yuval-k added a commit to yuval-k/ztunnel that referenced this pull request May 7, 2025
…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]>
istio-testing pushed a commit to istio/ztunnel that referenced this pull request May 8, 2025
…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]>
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

Successfully merging this pull request may close these issues.

Subject alternative name extension must be marked critical if the "subject" field is empty
4 participants