Re: FTPS Certificate authentication without passwo - WeOnlyDo Discussion board

Re: FTPS Certificate authentication without passwo (General questions)

by wodDamir, Monday, May 11, 2009, 09:23 (5436 days ago) @ tamilarasan

Tamil,

Unfortunately, this isn't supported in Titan FTP Server. Titan requires certificates to be secured using password, since that password is used to encrypt/decrypt the certificate.

You would need to find a Server that does. I tried the following code with our wodFtpServer so I can confirm that works:

[code] WeOnlyDo.Client.FtpDLX ftp1 = new WeOnlyDo.Client.FtpDLX();
System.Security.Cryptography.X509Certificates.X509Certificate2 cert = new System.Security.Cryptography.X509Certificates.X509Certificate2();

cert.Import(@ C:certificate.pfx , , System.Security.Cryptography.X509Certificates.X509KeyStorageFlags.Exportable);

ftp1.Hostname = 127.0.0.1 ;
ftp1.Login = Damir ;
ftp1.Protocol = WeOnlyDo.Client.Protocols.FTPS;
ftp1.Authentication = WeOnlyDo.Client.Authentications.Certificate;
ftp1.Blocking = true;
ftp1.Certificate = cert;
ftp1.PrivateKey = cert.PrivateKey.ToXmlString(false);
ftp1.Connect();[/code]

If you wish, you can download trial version of wodFtpServer, and try it out with the samples.

You can download it directly from here: http://www.weonlydo.com/Samples/wodFTPServer.exe

Hope this helps.

Regards,
Damba


Complete thread: