EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SBSimpleFTPS.TElSimpleFTPSClient.Login

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
#16962
Posted: 07/06/2011 08:08:15
by Christer Buschmann (Basic support level)
Joined: 12/07/2007
Posts: 5

I have problems logging in to a FPTS server that requires CCC due to firewall limitations.

If I use a FTPS Client like IpSwitch I can log in without any problems (from the same PC).
But the SBSimpleFTPS client just reports: Error occured while enabling SSL/TLS on command channel.

I also tried the FTPS demo application with same results:
Use SSL/TLS = True, Use clear data channel = true, SSL2 only, Passive FTP mode = true, Explicit SSL, no certificate.

Here are the Simple FTPS Client Log and the log from IpSwitch FPTS client:
Upper window:
<<<220 FTP server[DataManager FTP Server]

>>>AUTH TLS
<<<234 Done

Lower window:
- Connecting to xxx.xxx.xxx.xxx:21
- Connected
- Error occured while enabling SSL/TLS on command channel

Log from IpSwitch accessing same server:

Connecting to xxx.xxx.xxx.xxx:21
Connected to xxx.xxx.xxx.xxx:21 in 0.140625 seconds, Waiting for Server Response
Initializing SSL Session ...
220 FTP server[DataManager FTP Server]
AUTH TLS
234 Done
SSL session NOT set for reuse
SSL Session Started.
Host type (1): AUTO
USER xxxxxxxx
331 Password
PASS (hidden)
230 User xxxxxxxx logged in
SYST
215 WIN32
PBSZ 0
200 Done
PROT P
200 Done
CCC
200
PWD
257 "/" is current directory.
CWD /
250 Change to "/" succesful
PWD257 "/" is current directory.
TYPE A
200 type set
PASV
227 Entering Passive Mode (xxx.xxx.xxx.xxx,4,94)
connecting data channel to xxx.xxx.xxx.xxx:4,94(1118)
data channel connected to xxx.xxx.xxx.xxx:4,94(1118)
LIST
150 ASCII data
transferred 331 bytes in 0.031 seconds, 84.736 kbps (10.592 kBps), transfer succeeded.
226 Transfer complete.
#16963
Posted: 07/06/2011 08:23:41
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

The problem is that demo does not have an option to invoke ElSimpleFTPSClient.ClearCommandChannel method. You should try to add it to the demo code after the ElSimpleFTPSClient.Open method.
#16964
Posted: 07/06/2011 08:57:14
by Christer Buschmann (Basic support level)
Joined: 12/07/2007
Posts: 5

Thank you for your reply.

Unfortunately I already hav tried that in my code with the same result.
It's the Login() command that results in the error, after the CCC command:
Like this (simplified):

Client.Open();
Client.ClearCommandChannel();
Client.Login(); --> Throws Exception

Christer.
#16965
Posted: 07/06/2011 09:05:26
by Christer Buschmann (Basic support level)
Joined: 12/07/2007
Posts: 5

I have created a SimpleFTPSDemo app. that hase the CCC option:

>snip<

Client.Open();
Log("Connected", false);

if (propsForm.cbCCC.Checked)
{
Client.ClearCommandChannel();
Log("CCC Requested", false);
}

Client.Login();
Log("Loggged in", false);

>snip<

Christer.
#16966
Posted: 07/06/2011 09:06:17
by Christer Buschmann (Basic support level)
Joined: 12/07/2007
Posts: 5

Same result: Error occured while enabling SSL/TLS on command channel :(

Christer.
#16967
Posted: 07/06/2011 09:21:24
by Ken Ivanov (EldoS Corp.)

1) Please try to leave only SSL3 and TLS1 protocol versions enabled (switch off SSL2, TLS1.1 and TLS1.2) and check if it helps.

2) If it doesn't, please comment out the existing contents of Client_OnCertificateValidate event handler, add a single "Validate = true;" line to it and try to connect again.
#16973
Posted: 07/07/2011 02:52:35
by Christer Buschmann (Basic support level)
Joined: 12/07/2007
Posts: 5

Thank you for your reply.

Forcing SSL3 and placing the ElSimpleFTPSClient.ClearCommandChannel() between ElSimpleFTPSClient.Open() and ElSimpleFTPSClient.Login() did the trick :-)

Thank you for all help!

Christer.
Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.

Reply

Statistics

Topic viewed 2547 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!