Home > Back-end >  Delphi7 indy10 use idftp connect FTP (TLS/SSL protocol)
Delphi7 indy10 use idftp connect FTP (TLS/SSL protocol)

Time:11-10

Delphi7 + indy10 use idftp + IdSSLIOHandlerSocketOpenSSL FTP connection TLS protocol, currently IdFTP1. The Connect (); Has the connection is successful, IdFTP1. List (sr) into the directory is no problem, but IdFTP1 down. The List (sr) directory file is error 'data connections must be encrypte "(data connection must be encrypted), excuse me, this is what reason, use IdSSLIOHandlerSocketOpenSSL must need the certificate? (I don't have FTP server certificate)

I don't have integral, bother everybody to help!!!!!!!!!

CodePudding user response:

Your top, ask everybody to help, the whole days also didn't understand it,,,

CodePudding user response:

The server certificate is necessary, the client certificate is not required, you can see the FTP client setup certificate, otherwise the SSL can not be normal operation, the SSL is inherently requires server must have a certificate,

CodePudding user response:

Server is set up customer, should be have a certificate, certificate information with FileZilla connection when prompted. I thought the client side also need the certificate at the beginning, ask the customer, not to provide my card doesn't know how to do

CodePudding user response:

By the way, there is a problem, libeay32. DLL and ssleay32 DLLS need to register?

CodePudding user response:

Your top again, please use the function of friends to help!!!!!!

CodePudding user response:

 procedure TForm1. Button1Click (Sender: TObject); 
The begin//need USES idFtpCommon
IdFTP1. IOHandler:=IdSSLIOHandlerSocketOpenSSL1;
IdFTP1. UseTLS:=utUseExplicitTLS;
IdFTP1. DataPortProtection:=ftpdpsPrivate;
end;
  • Related