'SslHostCertificateFingerprint' cannot be found on this object

Advertisement

namerg
Joined:
Posts:
2
Location:
USA

'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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: 'SslHostCertificateFingerprint' cannot be found on this object

The property is called TlsHostCertificateFingerprint since 5.2.3.

Reply with quote

namerg
Joined:
Posts:
2
Location:
USA

Re: 'SslHostCertificateFingerprint' cannot be found on this object

martin wrote:

The property is called TlsHostCertificateFingerprint since 5.2.3.

You got it. Thank you very much sir.javascript:emoticon(':D')

Reply with quote

Advertisement

You can post new topics in this forum