SslPolicyErrors.RemoteCertificateChainErrors | Use this line to validate self-signed certificates:Ĭlient.ServerCertificateValidate += ValidateCertificate The last sample shows how to deal with self-signed certificates:
If your FTP server is using other port than standard 990, you need to use overloaded version of ConnectSSLĬlient.ConnectSSL("", 999) Ĭlient.ConnectSSL("", 999)
The only difference compared to the FTP protocol is that you need to use ConnectSSL method instead of regular Connect:įoreach (FtpItem item in client.GetList())įor Each item As FtpItem In client.GetList() Using FTPS (FTP protocol over secure SSL channel is easy with Ftp.dll.