setting TLS/SSL version with .NET assembly

Advertisement

hirosh
Joined:
Posts:
1

setting TLS/SSL version with .NET assembly

Hello,

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???

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum