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

Support for OpenSSH ecdsa-sk & ed25519-sk #1280

Open
Utesgui opened this issue Jul 30, 2024 · 1 comment
Open

Support for OpenSSH ecdsa-sk & ed25519-sk #1280

Utesgui opened this issue Jul 30, 2024 · 1 comment

Comments

@Utesgui
Copy link

Utesgui commented Jul 30, 2024

I would love to use my ed25519-sk-keys with the keeper ssh command.

Support was added to cryptography in March:
pyca/cryptography#10604

Screenshot with 16.11.8:
image

This screenshot was from 16.11.0
image

@sk-keeper
Copy link
Collaborator

The mentioned cryptography thread is about public not private key.
The latest cryptography package 43.0.0 cannot load Yubikey's private key.

>>> serialization.load_ssh_private_key(private_key.encode(), password=b'...')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/skolupaev/Work/PY/sdk/lib/python3.11/site-packages/cryptography/hazmat/primitives/serialization/ssh.py", line 696, in load_ssh_private_key
    pubfields, pubdata = kformat.get_public(pubdata)
                         ^^^^^^^^^^^^^^^^^^
AttributeError: '_SSHFormatSKEd25519' object has no attribute 'get_public'. Did you mean: 'load_public'?

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

No branches or pull requests

2 participants