Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 May : FTP over TLS/SSL (one more time)
| Subject: | FTP over TLS/SSL (one more time) |
| Posted by: | "Bert" (bendl..@dictanet.com) |
| Date: | Tue, 8 May 2007 16:44:51 |
hopefully the last;-))
Now I got a server, that let me establish a secure connection.
FTP over TLS
I've tested it with a FTP application named FileZilla.
The data I've used:
Host: MyHostName.de
Port: 21
type of server: FTP over TLS(explicit encoding)
User: Me
Pass: MyPass
and everthing works fine.
Now I've tried to set up a connection using Indy.
FTPCtrl.Host := MyHostName.de
FTPCtrl.Username := Me;
FTPCtrl.Password := MyPass;
FTPCtrl.UseTLS := utUseExplicitTLS;
FTPCtrl.Port := 21;
FTPCtrl.IOHandler := IdSSLIOHandlerSocketOpenSSL1;
SSLOptions.Method := sslvSSLv3;
FTPCtrl.Connect;
And the connection seems to be established and everything looks fine.
---------- logging ---------------------
SSLIO-Status: Resolving hostname xxxxxxxxxxx.
[08.05.2007 16:34:34] - SSLIO-Status: Connecting to xx.xxx.xxx.xxx.
[08.05.2007 16:34:34] - Connected.
[08.05.2007 16:34:34] - SSLIO-StatusINFO: SSL status: "before/connect
initialization"
[08.05.2007 16:34:34] - SSLIO-StatusINFO: SSL status: "before/connect
initialization"
[08.05.2007 16:34:34] - SSLIO-StatusINFO: SSL status: "SSLv3 write client
hello A"
[08.05.2007 16:34:34] - SSLIO-StatusINFO: SSL status: "SSLv3 read server
hello A"
[08.05.2007 16:34:34] - SSLIO-StatusINFO: SSL status: "SSLv3 read server
certificate A"
[08.05.2007 16:34:34] - SSLIO-StatusINFO: SSL status: "SSLv3 read server key
exchange A"
[08.05.2007 16:34:34] - SSLIO-StatusINFO: SSL status: "SSLv3 read server
certificate request A"
[08.05.2007 16:34:34] - SSLIO-StatusINFO: SSL status: "SSLv3 read server
done A"
[08.05.2007 16:34:34] - SSLIO-StatusINFO: SSL status: "SSLv3 write client
certificate A"
[08.05.2007 16:34:34] - SSLIO-StatusINFO: SSL status: "SSLv3 write client
key exchange A"
[08.05.2007 16:34:34] - SSLIO-StatusINFO: SSL status: "SSLv3 write change
cipher spec A"
[08.05.2007 16:34:34] - SSLIO-StatusINFO: SSL status: "SSLv3 write finished
A"
[08.05.2007 16:34:34] - SSLIO-StatusINFO: SSL status: "SSLv3 flush data"
[08.05.2007 16:34:35] - SSLIO-StatusINFO: SSL status: "SSLv3 read finished
A"
[08.05.2007 16:34:35] - SSLIO-StatusINFO: SSL status: "SSL negotiation
finished successfully"
[08.05.2007 16:34:35] - SSLIO-StatusINFO: SSL status: "SSL negotiation
finished successfully"
[08.05.2007 16:34:35] - SSLIO-StatusINFO: Cipher: name =
EDH-RSA-DES-CBC3-SHA; description = EDH-RSA-DES-CBC3-SHA SSLv3 Kx=DH
Au=RSA Enc=3DES(168) Mac=SHA1
; bits = 168; version = TLSv1/SSLv3;
[08.05.2007 16:34:35] - Connection established
---------- logging ---------------------
But if I call FTPCtrl.Put() the put command fails with:
"Illegal PORT Command"
The same occurs if I call FTPCtrl.List()
Whats wrong?
What i have to do to solve this problem?
Thanks in advanced
Bert