Server asks for authentication with a client certificate

Advertisement

tomino174
Joined:
Posts:
3
Location:
Czech republic

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,453
Location:
Prague, Czechia

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"?

Reply with quote

tomino174
Joined:
Posts:
3
Location:
Czech republic

Re: Server asks for authentication with a client certificate

martin wrote:

What "FTP client"?
I'm using WinSCP client, it works without any issue.
  • log.txt (9.06 KB, Private file)

Reply with quote

tomino174
Joined:
Posts:
3
Location:
Czech republic

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar

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.

Reply with quote

Advertisement

You can post new topics in this forum