Open JeremiFerre opened 4 years ago
I have the same problem, do you have any solution for that?
This is blocking me too - any progress?
Sadly, the current implementation of forge.ssh.publicKeyToOpenSSH (and privateKeyToOpenSSH) only works with RSA key.
@ROTGP - try https://github.com/EternalDeiwos/keyto, that might work for your use case.
I try to generate ssh keys with node-forge, using ed25519 key type. I was previously using rsa keys and I was used to generate the key pairs like this:
But when I'm trying to use new curve25519 like that:
I get these errors when converting generated key pair to Pem or to OpenSSH:
error for privateKeyToPem
error for publicKeyToOpenSSH
Environment