C# Application - Certificate Error when Establishing a Connection

Advertisement

paulvy
Joined:
Posts:
1
Location:
xxxxxxx

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.

WinSCP Certificate Warning.png

Reply with quote

Advertisement

You can post new topics in this forum