ED25519 and ECDSA private key support

FTP client for Android handsets.

ED25519 and ECDSA private key support

Postby news2requ » Sun Sep 09, 2018 9:05 am

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.)
news2requ
 
Posts: 4
Joined: Tue May 01, 2012 7:29 am

Re: ED25519 and ECDSA private key support

Postby support » Sun Oct 28, 2018 6:31 pm

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-----
support
 
Posts: 1021
Joined: Sun Apr 20, 2008 4:40 pm


Return to AndFTP



cron

Sitemap | Privacy Statement | Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc.
in the U.S. and other countries. All other company and/or product names are the property of their respective owners.