Topic "Connection failed"

Author Message
PeteFishwick
[View user's profile]

Joined: 2015-03-30
Posts: 5
Location: Truckcom Systems - UK
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.
Connected.txt (4.08 KB) [Download]

Description: Session log for successful connection

Connection Failed.txt (4.78 KB) [Download]

Description: Session log for failed connection

Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
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:
http://winscp.net/eng/docs/tls#certificate
http://winscp.net/eng/docs/library_sessionoptions
PeteFishwick
[View user's profile]

Joined: 2015-03-30
Posts: 5
Location: Truckcom Systems - UK
THank you, do you have a code example showing hos to use SessionOptions.TlsHostCertificateFingerprint?

prikryl 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:
http://winscp.net/eng/docs/tls#certificate
http://winscp.net/eng/docs/library_sessionoptions
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Just copy and paste the certificate from Server and Protocol Information Dialog:
http://winscp.net/eng/docs/ui_fsinfo
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License