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

feat/improve-root-cert-support #310

Merged
merged 3 commits into from
Dec 15, 2022
Merged

Conversation

MasterKale
Copy link
Owner

This PR tweaks certificate revocation check logic to also look for a key identifier in the Subject Key Identifier extension if a key identifier is missing in Authority Key Identifier extension.

This was born out of #302, which I maintain was due to a malformed root certificate. However, while investigating that issue I came to the conclusion, after reading Section 4.2.1.1 and Section 4.2.1.1 of RFC 5280, that my code didn't correctly handle the case of a self-signed root certificate being able to omit an Authority Key Identifier extension but conveying a keyIdentifier via the Subject Key Identifier extension instead.

This means we're potentially dealing with self-signed root certificate. This is a slight tweak based on a deeper reading of RFC 5280 Section 4.2.1.1 and 4.2.1.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:server @simplewebauthn/server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant