Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
17.3k views
in Java FTP by
I use edtFTPj/SSL but I get this error:

com.enterprisedt.net.puretls.SSLHandshakeFailedException: java.net.SocketException: Connection reset
at com.enterprisedt.net.puretls.SSLConn.handshake(SSLConn.java:155)
at com.enterprisedt.net.puretls.SSLSocket.handshake(SSLSocket.java:437)
at com.enterprisedt.net.ftp.ssl.B.I(Unknown Source)
at com.enterprisedt.net.ftp.ssl.SSLFTPClient.auth(Unknown Source)

in ftp.auth(SSLFTPClient.AUTH_TLS); method.

Anybody help me.

Thanks

14 Answers

0 votes
by
Now the error is

com.enterprisedt.net.ftp.FTPException: SSL/TLS required on the control channel
at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(Unknown Source)
at com.enterprisedt.net.ftp.FTPClient.login(Unknown Source)

ing ftp.login() method.

:cry: :cry:
0 votes
by (162k points)
Are you still using auth(SSLFTPClient.AUTH_TLS) before login?

Can you post up your log file please?

Now the error is

com.enterprisedt.net.ftp.FTPException: SSL/TLS required on the control channel
at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(Unknown Source)
at com.enterprisedt.net.ftp.FTPClient.login(Unknown Source)

ing ftp.login() method.

:cry: :cry:
0 votes
by
Yes, If use
auth(SSLFTPClient.AUTH_TLS);

The error is

com.enterprisedt.net.puretls.SSLHandshakeFailedException: java.net.SocketException: Connection reset
at com.enterprisedt.net.puretls.SSLConn.handshake(SSLConn.java:155)
at com.enterprisedt.net.puretls.SSLSocket.handshake(SSLSocket.java:437)
at com.enterprisedt.net.ftp.ssl.B.I(Unknown Source)
at com.enterprisedt.net.ftp.ssl.SSLFTPClient.auth(Unknown Source)
at IntegracionLogista.conectaFTP(IntegracionLogista.java:246)
at IntegracionLogista.main(IntegracionLogista.java:387)

The code:
ftp =
new SSLFTPClient(
strServerName,SSLFTPClient.ConfigFlags.DISABLE_DATA_WAIT_ON_CLOSE);

ftp.setValidateServer(false);
ftp.connect();
ftp.auth(SSLFTPClient.AUTH_TLS);
ftp.login(UserFTPName, PwdFTP);
0 votes
by (162k points)
I'm having trouble following what's going in this thread.

Is this correct?

You get the following error in auth(SSLFTPClient.AUTH_TLS):

com.enterprisedt.net.puretls.SSLHandshakeFailedException: java.net.SocketException: Connection reset

If you don't use auth(SSLFTPClient.AUTH_TLS) you get (as you'd expect)

com.enterprisedt.net.ftp.FTPException: SSL/TLS required on the control channel

You also say that the problem is certificates. What leads you to this conclusion?

If so, are you calling loadRootCertificates(..) as in this example?

http://www.enterprisedt.com/products/ed ... _java.html

We know that edtFTPj/SSL works with mod_tls/proFTPD because we test with it.

To make any further progress with this issue we need your log file - the stack trace is not enough.

Categories

...