Hey,
I'm currently trialling the edtFTPnet/PRO library, just trying to make sure it can connect to all the types of servers we require before we purchase and I've hit a bit of a snag... I can't get the certificate-based authentication to an SFTP server to work correctly, specifically it won't load the certificate from my certificate file.
The call that's failing is:
ftpConn.ClientCertificate = EnterpriseDT.Net.Ftp.Ssl.SSLFTPCertificate.CreateFromFile(@"C:\Apps\FtpTest\test.key");
With a SSLFTPException "Unrecognized file-type: C:\Apps\FtpTest\test.key".
The key file is an OpenSSH key, I also have a PPK (PuTTY) file of it and I've used this test.key previously with SharpSSH successfully. I've tried using Pageant to export an OpenSSL key from the ppk, which not suprisingly is identical to the original and still didn't work.
If it helps at all in knowing what kind of file it is the file I believe is an OpenSSH file starts with "-----BEGIN RSA PRIVATE KEY-----" and ends with "-----END RSA PRIVATE KEY-----".
Am I using an unsupported key format, do I need to put the key through some other app before I can use it with edtFTPnet/PRO? If so, could you recommend what applications might work?