Connection failed

Advertisement

PeteFishwick
Joined:
Posts:
5
Location:
Truckcom Systems - UK

Connection failed

I am running the same .NET routine on two separate servers. On one of them I connect ok on the other the connection fails.

Both use exactly the same protocol, hostname, username and password.

Can anyone suggest why the failing connection fails.
Description: Session log for successful connection
Description: Session log for failed connection

Reply with quote E-mail

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Connection failed

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 using SessionOptions.TlsHostCertificateFingerprint.

See:
https://winscp.net/eng/docs/tls#certificate
https://winscp.net/eng/docs/library_sessionoptions

Reply with quote

PeteFishwick
Joined:
Posts:
5
Location:
Truckcom Systems - UK

Re: Connection failed

THank you, do you have a code example showing hos to use SessionOptions.TlsHostCertificateFingerprint?

martin wrote:

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 using SessionOptions.TlsHostCertificateFingerprint.

See:
https://winscp.net/eng/docs/tls#certificate
https://winscp.net/eng/docs/library_sessionoptions

Reply with quote E-mail

Advertisement

You can post new topics in this forum