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

Fix macOS system validator w/self-signed certs #387

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

mmastrac
Copy link
Contributor

@mmastrac mmastrac commented Feb 21, 2025

When using the system validator on macOS, self-signed certs will fail with -67901 ("The validity period in the certificate exceeds the maximum allowed"). If we have additional roots, we instead want to validate them with the webpki validator. If we have no additional roots, convert that error into UnknownIssuer as no macOS system root should ever issue invalid certs.

We may want to move to the system validator at some point but we'll need to make sure we don't subtly break user installations.

@mmastrac mmastrac changed the title Test for macOS system validator Fix macOS system validator w/self-signed certs Feb 22, 2025
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.

1 participant