Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.1k views
in Java FTP by (300 points)
I'm getting an SSL handshake exception using a self-signed certificate.
With following stack trace. We have connected to other clients before with different certificates.
Error setting encryption : com.enterprisedt.net.puretls.cert.CertificateDecodeException: java.io.EOFException
com.enterprisedt.net.puretls.SSLHandshakeFailedException: com.enterprisedt.net.puretls.cert.CertificateDecodeException: java.io.EOFException
at com.enterprisedt.net.puretls.i.G(Unknown Source)
at com.enterprisedt.net.puretls.SSLSocket.handshake(Unknown Source)
at com.enterprisedt.net.ftp.ssl.SSLFTPControlSocket.H(Unknown Source)
at com.enterprisedt.net.ftp.ssl.SSLFTPClient.auth(Unknown Source)
at com.ecpower.comm.ftp.FTPSClient.setEncryption(FTPSClient.java:337)
at com.ecpower.FTPPollSession.PollMailbox(FTPPollSession.java:864)
at com.ecpower.FTPPollSession.runPolls(FTPPollSession.java:253)
at com.ecpower.FTPPollSession.main(FTPPollSession.java:1203)
I have log output and certificate being sent, if that will help.
Is there a problem with using self-signed certs? or DSA instead of RSA keys for the SSL?

Thanks for your assistance,
Dave

1 Answer

0 votes
by (300 points)
Just to close out this problem:
Updating the edtFTPj/Pro jar to the latest version did resolve the exception.
Thanks,
Dave

Categories

...