Skip to content

Comments

Add Set and UTF8String DER tags.#1265

Closed
bnoordhuis wants to merge 1 commit intobriansmith:mainfrom
bnoordhuis:more-der-tags
Closed

Add Set and UTF8String DER tags.#1265
bnoordhuis wants to merge 1 commit intobriansmith:mainfrom
bnoordhuis:more-der-tags

Conversation

@bnoordhuis
Copy link

@briansmith
Copy link
Owner

First, thank you very much for attempting to fix this.

I know how to fix the webpki bug and this isn't required for that, so I'm going to close this. I will post a PR for the webpki bug RSN.

@briansmith briansmith closed this May 2, 2021
bnoordhuis added a commit to bnoordhuis/webpki that referenced this pull request Sep 24, 2022
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.

Requires lifting some DER parsing logic from ring to parse UTF8String
and Set fields. Ring doesn't support those and isn't likely to in the
near future, see briansmith/ring#1265.

Closes briansmith#3.
bnoordhuis added a commit to bnoordhuis/webpki that referenced this pull request Nov 27, 2022
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.

Requires lifting some DER parsing logic from ring to parse UTF8String
and Set fields. Ring doesn't support those and isn't likely to in the
near future, see briansmith/ring#1265.

Closes briansmith#3.
ctz pushed a commit to rustls/webpki that referenced this pull request Jan 10, 2023
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.

Requires lifting some DER parsing logic from ring to parse UTF8String
and Set fields. Ring doesn't support those and isn't likely to in the
near future, see briansmith/ring#1265.

Closes #3.
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.

2 participants