Topic "TlsHostCertificateFingerprint"

Author Message
jjsco

Guest


I'm using automation 5.7.5 in Visual Studio, C#. Attempting to perform an FTP transfer with TLS with the following code:
Code:

return new SessionOptions
            {
                Protocol = Protocol.Ftp,
                FtpMode = WinSCP.FtpMode.Passive,
                FtpSecure = WinSCP.FtpSecure.Implicit,
                HostName = host,
                UserName = user,
                Password = password,
                TlsHostCertificateFingerprint = "‎f0:c4:75:a9:be:75:14:aa:d6:14:e9:84:8d:6b:39:06:c1:98:a3:00"
            };


But I always get the following error:
Code:
"TLS host certificate fingerprint \"‎‎f0:c4:75:a9:be:75:14:aa:d6:14:e9:84:8d:6b:39:06:c1:98:a3:00\" does not match pattern /([0-9a-f]{2}:){19}[0-9a-f]{2}(;([0-9a-f]{2}:){19}[0-9a-f]{2})*/"


The pattern definitely looks like it matches but I can't get past it. Please help. Thanks!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
There's a hidden left-to-right mark (E2 80 8E) as the beginning of the string.
http://www.fileformat.info/info/unicode/char/200e/index.htm
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License