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 security keys without attestation #542

Closed
wants to merge 1 commit into from

Conversation

michael-dev
Copy link

@michael-dev michael-dev commented Nov 29, 2024

Using libfido2 with windows://hello results in security key returning no attestation data. This currently fails due to fido_cred_verify_self failing.

According to Yubico/libfido2#840 this is not a bug in libfido2, but openssh instead has to skip the verify call if no attestation is given.

This fixes the issue by skipping attestation verification during key generation if there is no attestation.

Fixes PowerShell/Win32-OpenSSH#2040 and PowerShell/Win32-OpenSSH#2279

Using libfido2 with windows://hello results in security key returning
no attestation data. This currently fails due to fido_cred_verify_self
failing.

According to Yubico/libfido2#840 this is
not a bug in libfido2, but openssh instead has to skip the verify
call if no attestation is given.

This fixes the issue by skipping attestation verification during
key generation if there is no attestation.

Fixes PowerShell/Win32-OpenSSH#2040

Signed-off-by: Michael Braun <[email protected]>
@djmdjm
Copy link
Contributor

djmdjm commented Dec 2, 2024

This looks reasonable to me, but @martelletto knows way more about this than I do

@martelletto
Copy link
Contributor

LGTM

@djmdjm
Copy link
Contributor

djmdjm commented Dec 3, 2024

Merged as d3a7ff7 and will be in openssh-10.0, due in a couple of months

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.

Cannot create ecdsa-sk key with Windows Hello in ssh-keygen
3 participants