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

Author Message
paulvy
[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 (https://winscp.net/forum/viewtopic.php?t=11254) 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?

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

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
The SslCertificate has been renamed to TlsHostCertificateFingerprint.
See http://winscp.net/eng/docs/library_sessionoptions
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