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

unexpected "key enrollment failed: invalid format" #2231

Open
3 tasks done
HPicatto opened this issue May 13, 2024 · 1 comment
Open
3 tasks done

unexpected "key enrollment failed: invalid format" #2231

HPicatto opened this issue May 13, 2024 · 1 comment

Comments

@HPicatto
Copy link

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

update open-ssh to last version on windows uisng:
Start-Process -NoNewWindow msiexec.exe -ArgumentList "/i <full_path_to>\OpenSSH-Win64-v9.4.0.msi ADDLOCAL=Client ADD_PATH=1" -Wait
restart powershell
ssh-keygen -t ed25519-sk -f $env:USERPROFILE\.ssh\id_ed25519_sk

Expected behavior

key should be generated after requesting to touch the yubikey

Actual behavior

Generating public/private ed25519-sk key pair.
You may need to touch your authenticator to authorize key generation.
Key enrollment failed: invalid format

this prompt is received without even requesting to touch the key



### Error details

_No response_

### Environment data

```PowerShell
Name                           Value
----                           -----
PSVersion                      5.1.22621.2506
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22621.2506
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Version

OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2

Visuals

image

@poupryc
Copy link

poupryc commented May 14, 2024

While generation worked on my side, ssh-keygen -K returned Unable to load resident keys: invalid format too.
image

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

No branches or pull requests

3 participants