Re: Connection failed
Just copy and paste the certificate from Server and Protocol Information Dialog:
https://winscp.net/eng/docs/ui_fsinfo
https://winscp.net/eng/docs/ui_fsinfo
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
On "Windows 7 Professional" the TLS certificate of the FTP server was verified against Windows trusted root certificate.
On "Windows Web Server 2008 R2", it was not. So either you need to update Windows trusted root certificates or verify the certificate from your code usingSessionOptions.TlsHostCertificateFingerprint
.
See:
https://winscp.net/eng/docs/tls#certificate
https://winscp.net/eng/docs/library_sessionoptions
SessionOptions.TlsHostCertificateFingerprint
.