Re: Using a Certificate in wodSFTP.NET - WeOnlyDo Discussion board

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

by wodSupport, Thursday, September 14, 2006, 01:53 (6649 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


Complete thread: