Hello,
I want to connect with ftps tls explicit. When I open direct in Winscp, I can connect and all works fine. I have to accept the fingerprint from the server (from here I copy the key).
Now I wan´t to open the connection with poershell. This is my string
# Setup session options
$sessionOptions = New-Object WinSCP.SessionOptions -Property @{
Protocol = [WinSCP.Protocol]::Ftp
FtpSecure = [WinSCP.FtpSecure]::explicittls
TlsHostCertificateFingerprint = "1B:DC:10:56:80:3B:29:82:1B:F7:18:A1:14:CB:B0:00:42:F8:0D:4A"
HostName = $Quelle_Server
UserName = $Quelle_user
Password = $Quelle_Passwort
}
But then I start I got this error:
"Error: Der angegebene Wert ist ungültig, oder die Eigenschaft ist schreibgeschützt. Ändern Sie den Wert, und wiederholen Sie den Vorgang."
I searched for the error and somebody wrote, that this error means that the fingerprintkey is wrong.
So I double Checked in the fritz box, to this I want to connect, and there stand: "SHA-1 Fingerprint des Zertifikats: 1B:DC:10:56:80:3B:29:82:1B:F7:18:A1:14:CB:B0:00:42:F8:0D:4A" So I think the key have to be correct.
Have someone any ideas?