Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5.1k views
in Java FTP by (180 points)
Hi everyone,
i'm trying to run the use_FTPS_without_server_validation example, but i get this error after about 60 seconds:

INFO [TestFtp] 31 juil. 2007 13:51:46.198 : Creating FTPS (explicit) client
INFO [SSLFTPClient] 31 juil. 2007 13:51:46.260 : edtFTPj - PRO version
INFO [LicensePropertiesBase] 31 juil. 2007 13:51:46.307 : Licence expiry date: 31 ao

2 Answers

0 votes
by (162k points)
Can you modify the logging level to DEBUG and post the result? So connecting to 192.168.10.4 with an ordinary FTP client works fine?
0 votes
by (180 points)
Thanks for your answer. Some more details before giving you the debug log:
The FTP server is FileZilla server 0.9.23, configured to listen to port 21 for standard ftp, and 990 for ssl ftp.

So, i had to add a:
ftp.setRemotePort(990);

in my code.

I can connect with the Filezilla client without any problem.

I figured out it all seems to have something to do with the implicit/explicit parameters.
As a matter of fact, by adding these changes to my code:
ftp.setConfigFlags(SSLFTPClient.ConfigFlags.IMPLICIT_FTPS);
//ftp.auth(SSLFTPClient.AUTH_TLS);

everything works fine, but the docs seem to suggest this is not a proper way.

Here is the debug log:
INFO [UseFTPSWithoutServerValidation] 31 juil. 2007 15:31:15.985 : Creating FTPS (explicit) client
INFO [SSLFTPClient] 31 juil. 2007 15:31:16.63 : edtFTPj - PRO version
DEBUG [FTPClient] 31 juil. 2007 15:31:16.79 : Class: com.enterprisedt.net.ftp.ssl.SSLFTPClient
Version: 1.5.3
Build timestamp: 18-Jul-2007 14:22:55 EST
Java version: 1.5.0_06
CLASSPATH: C:\Documents and Settings\ceyssette\workspace\MLD.Server;C:\Documents and Settings\ceyssette\workspace\MLD.Server\ojdbc14.jar;C:\Documents and Settings\ceyssette\workspace\MLD.Server\edtftpj-pro.jar;C:\Documents and Settings\ceyssette\workspace\MLD.Server\license.jar
OS name: Windows XP
OS arch: x86
OS version: 5.1

INFO [LicensePropertiesBase] 31 juil. 2007 15:31:16.110 : Licence expiry date: 31 ao

Categories

...