elektra icon indicating copy to clipboard operation
elektra copied to clipboard

ssh public key checker does not know ed25519

Open vonneudeck opened this issue 7 years ago • 5 comments

When adding a new public key of the type ed25519 the interface does not accept it. bildschirmfoto 2018-01-08 um 17 56 30

vonneudeck avatar Jan 09 '18 10:01 vonneudeck

I'm not sure the OpenStack backend supports ed25519 type keys. Will have to find out.

edda avatar Jan 09 '18 10:01 edda

digging a little into the problem on two sides:

  1. elektra side: the error above comes from the keypair model validity check. For ed25519 support in net-ssh we need to install libsodium and rbnacl or rbnacl-libsodium

  2. openstack side: I tried to setup the ed25519 key with the openstack client and got the error response

{
    "badRequest": {
        "code": 400,
        "message": "Keypair data is invalid: failed to generate fingerprint"
    }
}

to be sure I used the openstack client in the right way I tried the same with an RSA key and it worked.

Found a bugreport for the same error here For my test I was using the API-Version 2.1, the installed Nova release is mitaka

hgw77 avatar Aug 13 '18 10:08 hgw77

Thank you for the investigation. Since this isn't supported in OpenStack either let's not pursue this for now. If things change we can revisit...

edda avatar Sep 03 '18 12:09 edda

The openstack cli can now create keypairs for ed25519 keys, so elektra should be able to use them, too.

SuperSandro2000 avatar Jul 12 '23 09:07 SuperSandro2000

Ok, sounds good, I will take a look 👍

hgw77 avatar Jul 12 '23 10:07 hgw77

this should be fixed with #1382

hgw77 avatar Jul 01 '24 13:07 hgw77

Even after all these years this fills my heart with joy. Thank you so much everyone!

vonneudeck avatar Jul 01 '24 14:07 vonneudeck