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

feature/enhance-rsa-support #50

Merged
merged 27 commits into from Sep 10, 2020
Merged

Conversation

MasterKale
Copy link
Owner

@MasterKale MasterKale commented Aug 29, 2020

This PR enhances support for attestations and assertions containing RSA authenticator public keys. The simple fact is too much code assumed it was handling EC2 public keys; going RSA public key was surprisingly underbaked.

I've renamed the PR to reflect the fact that it wasn't TPM attestation support that was fixed, but rather attestations containing RSA public keys, of which TPM devices commonly produce.

This PR contains a breaking change! The entire authenticator public key is now returned from verifyAttestationResponse() instead of a previously pared down amount of public key info. Any authenticator public keys stored before this PR are no longer valid for use in assertions.

Fortunately I was able to create a simple "upgrade" script that these "old" public keys can be run through to fix them:

https://gist.github.com/MasterKale/175cb210b097632d7cd03fd409e2dfb3

@MasterKale
Copy link
Owner Author

Issue #49 prompted me to finally push up my initial work at tracking down this bug.

@MasterKale MasterKale marked this pull request as ready for review September 9, 2020 17:03
I wrote a simple script to convert existing “old format” authenticator public keys to a newer format.
@MasterKale MasterKale changed the title feature/fix-win10-tpm-assertion feature/enhance-rsa-support Sep 10, 2020
@MasterKale MasterKale merged commit 9241fbc into master Sep 10, 2020
@MasterKale MasterKale deleted the feature/fix-win10-tpm-assertion branch September 10, 2020 05:52
@MasterKale MasterKale added the package:server @simplewebauthn/server label Sep 10, 2020
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.

None yet

1 participant