'SslHostCertificateFingerprint' cannot be found on this object
Hello,
I did upgrade from winscp 554 to winscp 577 and i am getting the following error
The property 'SslHostCertificateFingerprint' cannot be found on this object. Verify that the property exists and can be set.
The code i have is:
Add-Type -Path "C:\scripts\havoc\WinSCPnet.dll"
#Setup session options
$sessionOptions = New-Object WinSCP.SessionOptions
$sessionOptions.Protocol = [WinSCP.Protocol]::ftp
$sessionOptions.FtpSecure = [WinSCP.FtpSecure]::Implicit
$sessionOptions.HostName = "1.2.3.4"
$sessionOptions.UserName = "username"
$sessionOptions.Password = "password"
$sessionOptions.SslHostCertificateFingerprint = "THE KEY"
Thanks for your help
I did upgrade from winscp 554 to winscp 577 and i am getting the following error
The property 'SslHostCertificateFingerprint' cannot be found on this object. Verify that the property exists and can be set.
The code i have is:
Add-Type -Path "C:\scripts\havoc\WinSCPnet.dll"
#Setup session options
$sessionOptions = New-Object WinSCP.SessionOptions
$sessionOptions.Protocol = [WinSCP.Protocol]::ftp
$sessionOptions.FtpSecure = [WinSCP.FtpSecure]::Implicit
$sessionOptions.HostName = "1.2.3.4"
$sessionOptions.UserName = "username"
$sessionOptions.Password = "password"
$sessionOptions.SslHostCertificateFingerprint = "THE KEY"
Thanks for your help