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

Guest

Re: Peer Certificate Rejected,, Connection Failed

I was able to make my code run by settings
SessionOptions.GiveUpSecurityAndAcceptAnyTlsHostCertificate = true
MasieroR

Re: What Vaue would you set it to

Installing the latest version (5.1) the problem does not recur.
Thank you.
MasieroR

Re: What Vaue would you set it to

Hi,
I've the same problem.
I set the SessionOptions.SslHostCertificateFingerprint with the fingerprint of the untrusted certificate, but when I try to open the session, the application freeze and I've to kill the app.

Thank you.
martin

Re: What Vaue would you set it to

@MrRanger: Fingerprint of the untrusted certificate.
MrRanger

What Vaue would you set it to

What value would you set it to in order to accept the untrusted certificate
martin

Re: peer certificate rejected exceptio

Make sure you set SessionOptions.SslCertificate (renamed to TlsHostCertificateFingerprint in the later versions) to accept the untrusted certificate:
https://winscp.net/eng/docs/library_sessionoptions
sangeethu

Re: peer certificate rejected exceptio

Even I am facing the same problem. Please let me know whether you resolved this issue.
terrence

Peer certificate rejected exception

HI,
I installed 5.0 beta WinSCP and reference Winscp.dll use C# code, but I can't connect to server successfully.
Throws exception -->
WinSCP.sessionRemoteException:peer certificate rejected .

What's problem, who can help me?