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 Ed25519/Ed448 SSH host keys in old format #5532

Merged
merged 1 commit into from
Jan 11, 2022

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.

None yet

3 participants