Hi, I am using below code to transfer file to mainframe server
Ftp fClient = new Ftp();
try
{
//ftp over ssl -> secure ftp protocol for mainframe
fClient.Settings.SslAcceptAllCertificates = true;
fClient.Connect(ftpServerName, SslMode.Explicit);
fClient.Login(ftpUserName, ftpPassword);
fClient.TransferType = FtpTransferType.Ascii;
fClient.Site("RECFM=FB LRECL=100 BLOCKSIZE=0");
fClient.PutFile(sourceFilePath, ftpFilePath);
}
It seems it is using TLS 1.0 to connect and it is failing to connect to server because now server is enforcing TLS 1.2.
How can I modify the code to use TLS 1.2 for connection?