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: Allow ExtKeyUsageAny for Webauthn attestation certificates #51201

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

codingllama
Copy link
Contributor

Windows Hello attestation checks fail because its attestation certificates set ExtKeyUsage 2.23.133.8.3 (and also 1.3.6.1.4.1.311.21.36, which doesn't seem to be thoroughly documented).

This PR fixes that by allowing any ExtKeyUsage to be part of attestation certificates. That is partly because there are no consts for the OIDs above, but also because it doesn't seem like a reason to fail attestation.

Changelog: Fixed WebAuthn attestation for Windows Hello

@codingllama codingllama changed the title Allow ExtKeyUsageAny for Webauthn attestation certificates fix: Allow ExtKeyUsageAny for Webauthn attestation certificates Jan 17, 2025
allowed = true // OK, but keep checking
} else {
log.DebugContext(context.Background(),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some logging to help future debugging. The first certificate in the Hello chain fails validation, which is good to know (the second passes so thankfully it works).

For the curious, the error is "x509: unhandled critical extension".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant