TlsHostCertificateFingerprint

Advertisement

jjsco
Guest

TlsHostCertificateFingerprint

I'm using automation 5.7.5 in Visual Studio, C#. Attempting to perform an FTP transfer with TLS with the following 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:
"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!

Reply with quote

Advertisement

You can post new topics in this forum