cloudtools / ssh-cert-authority

An implementation of an SSH certificate authority.
BSD 2-Clause "Simplified" License
728 stars 71 forks source link

Support encypted Ed25519 SSH keys #35

Open timecode opened 6 years ago

timecode commented 6 years ago

Unencrypted (no passphrase) Ed25519 SSH keys work fine, but when using an encrypted (with a passphrase) Ed25519 SSH key, the following currently happens...

...
SSH Key Passphrase [none]: •••••
error adding private key: error parsing private key: ssh: cannot decode encrypted private keys
...
$ > 
timecode commented 6 years ago

This appears to be an issue in crypto/ssh (in case anyone else comes across this), so I guess it'll be resolved when https://github.com/golang/go/issues/18692 is resolved.

pquerna commented 6 years ago

this module does support parsing them fwiw: https://github.com/ScaleFT/sshkeys