Page 1 of 1

ED25519 and ECDSA private key support

PostPosted: Sun Sep 09, 2018 9:05 am
by news2requ
How can I get AndFTP to recognize ED25519 (preferred) or ECDSA (less preferred) private key files? Right now with version 4.5 it just gives an error:

java.io.IOException: Invalid PEM structure '-----BEGIN...' missing [can't see the rest of the error]


Here's what the key file looks like:
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtz
c2gtZWQyNTUxOQAAACCVOhS7uP2rEVhQQFc7YB69hz+xTxUlzCPdJSZjJh0KUwAA
AKDm4qSF5uKkhQAAAAtzc2gtZWQyNTUxOQAAACCVOhS7uP2rEVhQQFc7YB69hz+x
TxUlzCPdJSZjJh0KUwAAAEAAEigP8+DIwKS91Sw4AeSFhj9olwsXg4MHk2Psq4Fl
RpU6FLu4/asRWFBAVztgHr2HP7FPFSXMI90lJmMmHQpTAAAAFGVkMjU1MTkta2V5
LTIwMTgwOTA5AQIDBAUGBwgJ
-----END OPENSSH PRIVATE KEY-----

(That's a throwaway example I generated, not the actual key I'm using, lest anybody get worried.)

Re: ED25519 and ECDSA private key support

PostPosted: Sun Oct 28, 2018 6:31 pm
by support
Does it work for another one such as DES-EDE3?

Here is how it looks for a working one:
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,0A4861A137A6833E

LzYvCb34j9Y+VeJjyj1b7+4i+rJI8bU1tF7OKBVcAsAlcZDlUpVlXXEEG14nvgJ0
gpoudtqj+JIuLVV9vY/ikWnpOoZDB6c6F/DqYLMUXY1gmthU21+6Q5OEeUN5g1E3
dZ.....ISgxdXXND4L1kVI
zbgASFi0GqVkF0sofdZgVhSY5KosTiS26+H5K0lvF+rRUnzeqssyINy8WUVM0QYH
wETXC6KfeYmXcdgvOWG7PDe2deYg26Gvct4eZ2oBFJCoH6PV8Vx6bA==
-----END RSA PRIVATE KEY-----