FTP console app and SSL

Giganews Newsgroups
Subject: FTP console app and SSL
Posted by:  Greta (gzijlstra (at) hotmail (dot) com)
Date: Sun, 11 May 2008

I have this question already asked in indy.encryption.ssl but get no
response. Therefore I try it here.

I want to add SSL to my FTP console application. But I don't get it to work.
I have now the following code:

  Handler: TIdSSLIOHandlerSocketOpenSSL;
  FTP:= TIdFTP.Create(nil);
  Handler:= TIdSSLIOHandlerSocketOpenSSL.Create(nil);
  FTP.IOHandler := TIdSSLIOHandlerSocketOpenSSL.Create;
  Handler.SSLOptions.Mode:= sslmClient;

Can anyone tell what I have to do more to get SSL working?