Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Oct : Re: Which packages to use for Indy10 in Rad Studio 2007

www.cryer.info
Managed Newsgroup Archive

Re: Which packages to use for Indy10 in Rad Studio 2007

Subject:Re: Which packages to use for Indy10 in Rad Studio 2007
Posted by:"Gelein van de Voorde" (gele..@gvsnet.nl)
Date:11 Oct 2007 12:38:17

Remy,
> You still didn't say what your settings are for them.

I don't know what settings you are interested. Here are some:
FTP-component:
AuthCmd: tAutTLS
AutoLogin: true
DataportProtection: ftpdpsPrivate
IPVersion: IPv4
Passive: true
UseCCC: false
UseTLS: utUseExplicitTLS
IOHandler:
  SSLOptions:
Method: sslvTLSv1
Mode: sslmClient
VerifyDepth: 2

For both components: all timeouts 60000

> > With Rad Studio 5 the program won't even do the SSL handshake.
>
> Yes, it does attempt a handshake, or you wouldn't be getting that
> particular error to begin with.
>

Again compiled with Delphi2005 and Indy 10.0.20 it works fine.
A simple session produces the following log:

10:38:23.611: Connecting to 82.195.45.60.
10:38:23.689: Connected.
10:38:23.830: 220 GIS FTP Server (java -1.1.00) ready.
10:38:23.830: AUTH TLS
10:38:24.142: 234 Security data exchange complete.
10:38:24.142: SSL status: "before/connect initialization"
10:38:24.205: SSL status: "SSLv3 write client hello A"
10:38:24.595: SSL status: "SSLv3 read server hello A"
10:38:24.595: SSL status: "SSLv3 read server certificate A"
10:38:24.595: SSL status: "SSLv3 read server certificate request A"
10:38:24.595: SSL status: "SSLv3 read server done A"
10:38:24.595: SSL status: "SSLv3 write client certificate A"
10:38:24.595: SSL status: "SSLv3 write client key exchange A"
10:38:24.611: SSL status: "SSLv3 write certificate verify A"
10:38:24.611: SSL status: "SSLv3 write change cipher spec A"
10:38:24.611: SSL status: "SSLv3 write finished A"
10:38:24.611: SSL status: "SSLv3 flush data"
10:38:24.799: SSL status: "SSLv3 read finished A"
10:38:24.799: SSL status: "SSL negotiation finished successfully"
10:38:24.814: Cipher: name = RC4-SHA; description = RC4-SHA
SSLv3 Kx=RSA      Au=RSA  Enc=RC4(128)  Mac=SHA1
10:38:24.814: ; bits = 128; version = TLSv1/SSLv3;
10:38:24.814: USER GSTADSWEP1
10:38:25.252: 331 Password required for GSTADSWEP1.
10:38:25.252: PASS ********
10:38:25.689: 230 User GSTADSWEP1 logged in.
10:38:25.689: FEAT
10:38:26.002: 502 Command 'FEAT' not implemented.
10:38:26.017: TYPE A
10:38:26.330: 200 Type set to A.
10:38:26.345: SYST
10:38:26.658: 215 UNIX Type: A
10:38:26.658: Connection established
10:38:39.439: Starting FTP transfer
10:38:39.439: PBSZ 0
10:38:39.892: 200 PBSZ command successful.
10:38:39.892: PROT P
10:38:40.220: 200 PROT command successful.
10:38:40.220: PASV
10:38:40.658: 227 Entering Passive Mode (82,195,45,60,203,53).
10:38:40.673: LIST
10:38:46.345: 125 Data connection already open; transfer starting.
10:38:46.361: SSL status: "before/connect initialization"
10:38:46.361: SSL status: "SSLv3 write client hello A"
10:38:46.798: SSL status: "SSLv3 read server hello A"
10:38:46.798: SSL status: "SSLv3 read server certificate A"
10:38:46.798: SSL status: "SSLv3 read server certificate request A"
10:38:46.798: SSL status: "SSLv3 read server done A"
10:38:46.798: SSL status: "SSLv3 write client certificate A"
10:38:46.798: SSL status: "SSLv3 write client key exchange A"
10:38:46.798: SSL status: "SSLv3 write certificate verify A"
10:38:46.798: SSL status: "SSLv3 write change cipher spec A"
10:38:46.798: SSL status: "SSLv3 write finished A"
10:38:46.798: SSL status: "SSLv3 flush data"
10:38:47.001: SSL status: "SSLv3 read finished A"
10:38:47.001: SSL status: "SSL negotiation finished successfully"
10:38:47.001: Cipher: name = RC4-SHA; description = RC4-SHA
SSLv3 Kx=RSA      Au=RSA  Enc=RC4(128)  Mac=SHA1
10:38:47.001: ; bits = 128; version = TLSv1/SSLv3;
10:38:47.001: SSL status: "SSL negotiation finished successfully"
10:38:47.017: Transfer complete
10:38:47.220: 226 Closing data connection, ASCII transfer complete.
10:39:42.844: QUIT
10:39:42.844: Disconnecting.
10:39:42.844: SSL status: "SSL negotiation finished successfully"
10:39:42.844: Disconnected.

Compiled with Rad Studio 5 and Indy 10.2.3 I only can produce this
because futher execution is not possible:

13:44:59.583: Connecting to 82.195.45.60.
13:44:59.599: Connected.
13:44:59.817: 220 GIS FTP Server (java -1.1.00) ready.
13:44:59.817: AUTH TLS
13:45:00.036: 234 Security data exchange complete.
13:45:00.036: QUIT
13:45:00.052: Disconnecting.
13:45:00.052: Disconnected.
13:45:00.052: SSL is not available on this server.

The QUIT command in the first example was initiated by myself pressing
the Quit-button of my program.

The QUIT command in the second example is caused by Indy in the same
millisecond that the aknowledge from the server was received.

Compiled with Rad Studio 5 and Indy 10.1.5 it does the handshake but
immediate after that (in the same millisecond) a ReadTimeOut is fired
followed with a QUIT command. Unfortunally I forgot to save that log.

The program runs on a server in DMZ so I can not really debug it.

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive