Topic "Explicit FTPS with Automation"

Author Message
Shaun_Transnet

Guest


Hi

When using the Automation library and trying to connect to an Explicit FTPS server, it looks like the Automation Library is not sending the AUTH TLS command before sending the USERNAME command. Explicit FTPS connection work successfully when using the GUI for both versions tested on.

WinSCP version(automation) - 5.5.6 and 5.6.2(Beta)
Windows OS: Windows 7 / 2008R2
Error: WinSCP.SessionRemoteException: Connection failed. ---> WinSCP.SessionRemoteException: Authentication failed.
Connection failed.
Have to use explicit SSL/TLS before logging on.
--- End of inner exception stack trace ---
at WinSCP.SessionLogReader.Read(LogReadFlags flags)
at WinSCP.SessionElementLogReader.Read(LogReadFlags flags)
at WinSCP.CustomLogReader.WaitForNonEmptyElementAndCreateLogReader(String localName, LogReadFlags flags)
at WinSCP.Session.Open(SessionOptions sessionOptions)

Regards
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Please show your code and include a session log file.

To generate log file, set Session.SessionLogPath. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
_________________
Martin Prikryl
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