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
martin

Re: Peer Certificate Rejected,, Connection Failed

Suganya wrote:

When i try to establish a connection using FTP, i am encountering the following error,
"Peer Certificate Rejected , Disconnected from server , Connection Failed"

Please start a new topic and attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.
Suganya

Peer Certificate Rejected,, Connection Failed

When i try to establish a connection using FTP, i am encountering the following error,
"Peer Certificate Rejected , Disconnected from server , Connection Failed"
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 wrote:

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

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 exceptio

HI,
I installed 5.0 beta Winscp and reference Winscp.dll use C# code , but I can't connect to server successful.Throw exception --> WInSCP.sessionRemoteException:peer certificate rejected .
What's problme, Who can help me