Re: Using a Certificate in wodSFTP.NET (General questions)

by Jasmine, (6810 days ago) @ tyrven

Jeremy,

quite different, since wodFtpDLX.NET uses NET's classes. You should use RSA key from RSACryptoServiceProvider class (same applies for DSA). In order to convert key from wodSFTP.NET as discussed in previous post, install wodSFTP.NET to get wodKeyManager and convert the key (you need to do it just once). Load key to wodKeyManager, then export it to string using wodKeyManager.ToXmlString method. Then code like this should work in wodFtpDLX.NET:[code] System.Security.Cryptography.RSACryptoServiceProvider rsakey = new System.Security.Cryptography.RSACryptoServiceProvider();
rsakey.FromXmlString( );
Ftp1.PrivateKey = rsakey;
Ftp1.Authentication = WeOnlyDo.Client.Authentications.PublicKey;
[/code]

Hope I helped.
Kreso

locked

Complete thread: