title: Connecting to FTPS (FTP over SSL) with FluentFTP
body: <p>I am using IIS in my local machine for testing FTP with SSL connection. I am using the <a href="https://github.com/robinrodricks/FluentFTP" rel="nofollow noreferrer">FluentFTP</a> library for connecting to the FTP. I am using the following code to connect to the Server.</p>
  
  <pre><code>FtpClient conn = new FtpClient();
  conn.Host = firewallSslDetails.Address;
  conn.Credentials = new NetworkCredential(firewallSslDetails.UserName, firewallSslDetails.Password);
  conn.SslProtocols = System.Security.Authentication.SslProtocols.Default;
  
  X509Certificate2 cert = new X509Certificate2(@"C:\Users\BizTalk360\Desktop\FtpSites\ServerCert.cer");
  conn.EncryptionMode = FtpEncryptionMode.Implicit;
  conn.DataConnectionType = FtpDataConnectionType.AutoActive;
  conn.DataConnectionEncryption = true;
  conn.EnableThreadSafeDataConnections = false;
  conn.ClientCertificates.Add(cert);
  conn.ValidateCertificate += new FtpSslValidation(OnValidateCertificate);
  
  conn.Connect();
  </code></pre>
  
  <p>The server is returning me with the following error.</p>
  
  <blockquote>
    <p>FluentFTP.FtpCommandException: Policy requires SSL.; Win32 error: Access is denied.; Error details: SSL policy requires SSL for control channel.;</p>
  </blockquote>
  
  <p>For connecting over FTP the above code is working fine and for FTP with SSL it is not working.</p>