edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing

How to use FTPS (with server validation - part C)

This topic continues from How to use FTPS (with server validation - part A) and How to use FTPS (with server validation - part B).

Sometimes it may be desirable to ignore the CommonName (CN) of the server's certificate completely.  To configure SecureFTPConnection to this the ServerValidation property to AutomaticNoNameCheck:

ftpConnection.ServerValidation  =  SecureFTPServerValidationType.AutomaticNoNameCheck

In this case the server's certificate is still validated against those in the Windows certificate store, but its CommonName (CN) is ignored.