Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jjcarstens
Copy link
Contributor

If you use a host OS to generate a key via ssh-keygen for elliptic curves ed25519 and ed448, they would be generated in OpenSSH format which is currently supported in OTP.

However, if you use another generator, (i.e. openssl) or create a private key via Erlang functions (i.e. public_key:generate_key({namedCurve, ed25519})), it will format the key with ---- BEGIN EC PRIVATE KEY ---- which is not currently supported.

This PR adds in support for Ed25519/Ed448 SSH host keys in this old format to allow for key generation and storage via Erlang functions.

@rickard-green rickard-green added the team:PS Assigned to OTP team PS label Dec 20, 2021
@HansN HansN added enhancement testing currently being tested, tag is used by OTP internal CI labels Jan 10, 2022
@HansN HansN merged commit a9225fd into erlang:maint Jan 11, 2022
@HansN
Copy link
Contributor

HansN commented Jan 11, 2022

Thanks for the PR - indeed a good addition to ssh!

@HansN HansN removed the testing currently being tested, tag is used by OTP internal CI label Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement team:PS Assigned to OTP team PS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants