Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

paulvy

C# Application - Certificate Error when Establishing a Connection

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.