vb net fingerprint not working
Hi,
i'm using WinSCP 5.15 and i can't understand why fingerprint checking doesn't work, I'll explain the problem:
The problem is that in the local server (192.168.x.x) it only connects if the fingerprint is correct, while in another server (not local) it connects even if the fingerprint is not correct (obviously in the right format).
as fingerprint format i use: "XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX"
this is my code:
[code]
With sessionOptions
.Protocol = Protocol.Ftp
.HostName = ftpAddress
.UserName = ftpUser
.Password = ftpPassword
.PortNumber = 21
.TimeoutInMilliseconds = timeoutFtp
End With
If enableFtps.Checked = True Then
sessionOptions.FtpSecure = FtpSecure.Explicit
If trustCertificate.Checked = True Then
sessionOptions.TlsHostCertificateFingerprint = sslHostFingerprint
sessionOptions.GiveUpSecurityAndAcceptAnyTlsHostCertificate = False
Else
sessionOptions.GiveUpSecurityAndAcceptAnyTlsHostCertificate = True
End If
End If
[/code]
thanks in advance
i'm using WinSCP 5.15 and i can't understand why fingerprint checking doesn't work, I'll explain the problem:
The problem is that in the local server (192.168.x.x) it only connects if the fingerprint is correct, while in another server (not local) it connects even if the fingerprint is not correct (obviously in the right format).
as fingerprint format i use: "XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX"
this is my code:
[code]
With sessionOptions
.Protocol = Protocol.Ftp
.HostName = ftpAddress
.UserName = ftpUser
.Password = ftpPassword
.PortNumber = 21
.TimeoutInMilliseconds = timeoutFtp
End With
If enableFtps.Checked = True Then
sessionOptions.FtpSecure = FtpSecure.Explicit
If trustCertificate.Checked = True Then
sessionOptions.TlsHostCertificateFingerprint = sslHostFingerprint
sessionOptions.GiveUpSecurityAndAcceptAnyTlsHostCertificate = False
Else
sessionOptions.GiveUpSecurityAndAcceptAnyTlsHostCertificate = True
End If
End If
[/code]
thanks in advance