SSL host certificate fingerprint does not match
C#.NET 4.0 WinSCP 5.1
When I use the GUI in the registry it creates:
And works fine
When I run in code I get:
I get:
What am I doing wrong? I could not find anything in the docs.
When I use the GUI in the registry it creates:
FSProtocol
5
Ftps
1
PortNumber
990
FtpsCertificates
e6:a3:7a:56:5b:e3:bb:0d:1c:34:58:bd:47:94:79:75:32:2b:70:4d
And works fine
When I run in code I get:
for:SSL host certificate fingerprint "ssh-rsa 1024 e6:a3:7a:56:5b:e3:bb:0d:1c:34:58:bd:47:94:79:75:32:2b:70:4d" does not match pattern /([0-9a-f]{2}:){19}[0-9a-f]{2}/
SessionOptions sessionOptions = new SessionOptions { Protocol = WinSCP.Protocol.Ftp, FtpMode = FtpMode.Passive, FtpSecure = FtpSecure.Implicit, PortNumber = 990, UserName = "--------", Password = "--------", HostName = "ftp.----.com", SslHostCertificateFingerprint = "ssh-rsa 1024 e6:a3:7a:56:5b:e3:bb:0d:1c:34:58:bd:47:94:79:75:32:2b:70:4d" };
for:SSH host key fingerprint "ssh-rsa 1024 e6:a3:7a:56:5b:e3:bb:0d:1c:34:58:bd:47:94:79:75:32:2b:70:4d" does not match pattern /(ssh-rsa |ssh-dss )?\d+ ([0-9a-f]{2}:){15}[0-9a-f]{2}/
SessionOptions sessionOptions = new SessionOptions { Protocol = WinSCP.Protocol.Ftp, FtpMode = FtpMode.Passive, FtpSecure = FtpSecure.Implicit, PortNumber = 990, UserName = "--------", Password = "--------", HostName = "ftp.----.com", SshHostKeyFingerprint = "ssh-rsa 1024 e6:a3:7a:56:5b:e3:bb:0d:1c:34:58:bd:47:94:79:75:32:2b:70:4d" };