Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
24.1k views
in Java FTP by (1.1k points)
Hello,

I don't understand well FTP SSL. I'm using Filezilla server, auto-signed certificat generated by Filezilla. I read documentation (How to) of edtFTPj/PRO, but it's defintily not enough for newbie in the world of SSL.

Can help me to find an example ?

Best regards

34 Answers

0 votes
by (1.1k points)
No exception at all, but no connection (the program seems to be suspended on loadClient ... so before connection).
I sent you certificate :).
0 votes
by (1.1k points)
I regenerated a client certificate with OpenSSL and then i got this :

INFO [SSLFTPClient] 8 d
0 votes
by (1.1k points)
Another information :

My code :

SSLFTPClient secureFtpClient = new SSLFTPClient();
                           
secureFtpClient.setConfigFlags(SSLFTPClient.ConfigFlags.DISABLE_CONTROL_SSL_CLOSURE);
secureFtpClient.setRemoteHost(export._sIp);
secureFtpClient.setRemotePort(export._iPort);
secureFtpClient.getRootCertificateStore().importPEMFile("C:\\cert.pem");
secureFtpClient.loadClientCertificate("C:\\OpenSSL-Win32\\bin\\client_re_full.pem", "lafon");
LogFile.printLog(0, "INFO", "after load cert");
secureFtpClient.connect();
LogFile.printLog(0, "INFO", "after connect");
secureFtpClient.auth(SSLFTPClient.AUTH_TLS);
LogFile.printLog(0, "INFO", "after auth");
secureFtpClient.login(export._sLogin, export._sPassword);


And the execution is freezed on Auth() function ! (so "after auth" never logged)
0 votes
by (1.1k points)
I add that logs say auth is ok !! (log client and server)

DEBUG [FTPControlSocket] 13 d

Categories

...