Topic "'SslHostCertificateFingerprint' cannot be found on this object"

Author Message
namerg
[View user's profile]

Joined: 2016-06-29
Posts: 2
Location: USA
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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
The property is called TlsHostCertificateFingerprint since 5.2.3.
namerg
[View user's profile]

Joined: 2016-06-29
Posts: 2
Location: USA
martin wrote:
The property is called TlsHostCertificateFingerprint since 5.2.3.


You got it. Thank you very much sir.javascript:emoticon('Very Happy')
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License