Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

namerg

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')
martin

Re: 'SslHostCertificateFingerprint' cannot be found on this object

The property is called TlsHostCertificateFingerprint since 5.2.3.
namerg

'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