Topic "C# Application - Certificate Error when Establishing a Connection"

Author Message
[View user's profile]

Joined: 2015-11-10
Posts: 1
Location: xxxxxxx
Using WinSCP version 5.7.6

I am attempting to use FTP with TSL/SSL implicit encryption within a C# .NET application. My application hangs and then eventually times out when I try to establish a connection. This is probably due to the certificate warning. The error message is:

Self signed certificate. The error occurred at depth of 1 in the certificate chain.

I came across another post on this forum ( which mentions the SessionOptions.SslCertificate and setting the fingerprint but that property is not available from the version of the library I'm using.

What can I set in my code to accept the warning and establish a connection?

WinSCP Certificate Warning.png (24.5 KB) [Download]

Description: (none)

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27106
Location: Prague, Czechia
The SslCertificate has been renamed to TlsHostCertificateFingerprint.

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License