Skip to content

Conversation

@MasterKale
Copy link
Owner

This PR refactors @simplewebauthn/server to use the @peculiar/x509 library for X.509 certificate chain validation. The X.509 validation logic I'd written could not verify an attestation response when a P-384 ECDSA public key appeared in x5c in an "android-key" response from Android 10, and I couldn't immediately identify why. I decided this was a good time to re-evaluate why this project needed its own X.509 validation logic when more battle-tested libraries exist to handle edge cases I hadn't accounted for.

Fixes #705.

@MasterKale MasterKale added this to the v13.2.0 milestone Sep 6, 2025
@MasterKale MasterKale added the package:server @simplewebauthn/server label Sep 6, 2025
@MasterKale MasterKale merged commit 05e5e37 into master Sep 8, 2025
4 checks passed
@MasterKale MasterKale deleted the fix/705-use-lib-for-x509 branch September 8, 2025 15:36
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.

certificate path: found duplicate certificates (AndroidKey

2 participants