Topic "setting TLS/SSL version with .NET assembly"

Author Message
[View user's profile]

Joined: 2015-02-19
Posts: 1

I was able to configure WinSCp client with FTP protocol and SSL Explicit encryption.
However, the FTP server did not allow me to upload any file until I set the Minimum and Maximum TLS/SSL version to SSL 3.0
Now that i can successfully access the server and upload files using the client, I want to automate the process using the .NET assembly with Powershell script.

I am able to make a connection using the following settings in my script.

$sessionOptions = New-Object WinSCP.SessionOptions
$sessionOptions.FtpSecure = [WinSCP.FtpSecure]::explicittls
$sessionOptions.Protocol = [WinSCP.Protocol]::Ftp
$sessionOptions.HostName = "******"
$sessionOptions.UserName = "***"
$sessionOptions.Password = "*****"
$sessionOptions.TlsHostCertificateFingerprint = "xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"

I am failing at when i try to upload the file. I assume because i have not set the TLS/SSL version to SSL 3.0 as i did with the client.

My question is, How can I set the TLS/SSL version to SSL 3.0 using the .NET assembly???
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
Location: Prague, Czechia
Please read documentation:

If that does not help, come back.
Martin Prikryl

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License