Page 1 of 1

Unable to use FTP over TLS

Posted: 2020-01-03 10:00
by akhi_gangwar
Hi all,
I am trying ftp over tls where I am using the local Filezilla server.
The plain ftp is working fine. The data and control channels are working fine. I tried to create a tls and generate the self-signed certificate using FileZilla server app and then put the cert in .pem format at my client-side.
I am using explicit ftps and when after creating the tls, I try to connect to a server, I got failed on client-side with error -370 which is SL_ESEC_PROTOCOL_VERSION and at the server-side, I m getting this-
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> Connected on port 21, sending welcome message...
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 220 *********************Checking Filezilla ********************* //////// customized filezilla welcome message
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)>
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 500 Syntax error, command unrecognized.
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> E
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 500 Syntax error, command unrecognized.
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> A=Yd —cŽÙb÷kwù}ÀŸpMÖ.} @UcÁ{59
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 500 Syntax error, command unrecognized.
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> ÀÀ
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 500 Syntax error, command unrecognized.
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 9
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 500 Syntax error, command unrecognized.
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 5
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 500 Syntax error, command unrecognized.
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)>
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 500 Syntax error, command unrecognized.
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)>
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 500 Syntax error, command unrecognized.
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)>
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 500 Syntax error, command unrecognized.
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)>
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> 500 Syntax error, command unrecognized.
(000009)03-01-2020 15:17:01 - (not logged in) (192.168.1.102)> disconnected.

I don't know why the server is showing this when I use tls otherwise everything works fine.
Can anyone help me on this?
Thanks

Re: Unable to use FTP over TLS

Posted: 2020-01-03 10:05
by botg
Please refer to RFC 4217 for instructions how to switch to FTP over TLS.

Re: Unable to use FTP over TLS

Posted: 2020-01-03 10:55
by akhi_gangwar
Hi Botg,
I checked there. I have to send AUTH TLS command but before that, I am not able to open control channel.

Re: Unable to use FTP over TLS

Posted: 2020-01-03 22:40
by botg
You open the control connection. On this control connection you send AUTH TLS, await the reply. Then perform the TLS handshake on the control connection. The established secure channel then becomes the new control connection.

Re: Unable to use FTP over TLS

Posted: 2020-01-06 06:20
by akhi_gangwar
Here is the problem. I am crating the control channel and then sending the AUTH TLS command and I can see on the server is 234 Using authentication type TLS.
But after this nothing happens. I have created the TLS also and the library supposed to perform the handshake as the same library I am using in https and tls is being performed there.
I can't see anything on the server-side after this.