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

martin

Re: Server asks for authentication with a client certificate

tomino174 wrote:

I've just updated my client & .NET library via NuGet to the latest version. Behavior is still the same.

Please post a session log file both from WinSCP GUI and the .NET assembly.
tomino174

Re: Server asks for authentication with a client certificate

martin wrote:

tomino174 wrote:

I'm using WinSCP client, it works without any issue.

OK, but the code is also using WinSCP.
Isn't it a different version?

I've just updated my client & .NET library via NuGet to the latest version. Behavior is still the same.
martin

Re: Server asks for authentication with a client certificate

tomino174 wrote:

I'm using WinSCP client, it works without any issue.

OK, but the code is also using WinSCP.
Isn't it a different version?

It might be this problem:
https://winscp.net/tracker/1831
tomino174

Re: Server asks for authentication with a client certificate

martin wrote:

What "FTP client"?

I'm using WinSCP client, it works without any issue.
martin

Re: Server asks for authentication with a client certificate

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, set Session.SessionLogPath. 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 can mark the attachment as private.


tomino174 wrote:

PS: FTP user has full permissions, in FTP client I can upload files to the server without any problem.

What "FTP client"?
tomino174

Server asks for authentication with a client certificate

Hello, I have troubles with .NET library. I can successfully connect to ftp server and get files, but I when I use PutFiles method, I always get this message as output:

Error message: Server asks for authentication with a client certificate. Copying files to remote side failed. Failure reading network stream.

My session options were generated by WinSCP app.

SessionOptions sessionOptions = new SessionOptions

                {
                    Protocol = Protocol.Ftp,
                    HostName = ".....",
                    UserName = "....",
                    Password = "....",
                    FtpSecure = FtpSecure.Explicit,
                    TlsHostCertificateFingerprint = "................"
                };


I really don't know, why is this happening. Any ideas? Thanks

PS: FTP user has full permissions, in FTP client I can upload files to the server without any problem.