This topic continues from How to use FTPS (with server validation - part A).
Every certificate has a CommonName (CN) attribute. It is common for this attribute to be set to the host-name of the server. If, for example, the name of the server is ftp.mycompany.com the CN would be ftp.mycompany.com also. When the CN is not the same as the host-name then the ServerCommonName property must be set as follows:
ftpConnection.ServerCommonName = "ftp.mycompany.com";
Apart from this, configuration of the SecureFTPConnection is the same as in Part A.