It should be possible to add ECDSA keys to KeePassXC and it should be able to add it to the agent
I tried adding an ECDSA key to keepassxc, but when I select it in the SSH agent it says Unsupported key type: EC PRIVATE KEY
I'd like to be able to use ECDSA keys, not just RSA
KeePassXC - Version 2.3.4
Revision: 6fe821c
Libraries:
Operating system: Windows 10 (10.0)
CPU architecture: x86_64
Kernel: winnt 10.0.17134
Enabled extensions:
You may try ed25519 keys instead.
Yup, that works
If I remember correctly ECDSA keys work if they are converted to the "new" private key format with ssh-keygen.
@hifi could you please elaborate on how to convert existing EC PKs to the "new" private key format ?
@mrpew Make a copy of your key first but something along these lines:
$ cat ecdsa.key
-----BEGIN EC PRIVATE KEY-----
...
-----END EC PRIVATE KEY-----
$ ssh-keygen -c -o -f ecdsa.key
Key now has no comment
Enter new comment:
The comment in your key file has been changed.
$ cat old-ecdsa.key
-----BEGIN OPENSSH PRIVATE KEY-----
...
-----END OPENSSH PRIVATE KEY-----
The meat of the conversions is the -o switch for ssh-keygen which works in conjunction with some key modification functions. It's not very discoverable at all and took me a few minutes to remember the combination. Hope this helps.
@hifi Thanks so much, ssh-keygen -c -o -f keyfile works and the resulting file is accepted by KeePassXC :+1:
Closing this as we are not going to add legacy ECDSA key file parsing as it is marginally used and converting to the new format works for the remaining users.
Most helpful comment
@mrpew Make a copy of your key first but something along these lines:
The meat of the conversions is the
-oswitch for ssh-keygen which works in conjunction with some key modification functions. It's not very discoverable at all and took me a few minutes to remember the combination. Hope this helps.