I am getting the following error
[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.internalSocket(SSLSocket.java:296)
at com.enterprisedt.net.puretls.SSLSocket.<init>(SSLSocket.java:121)
at com.enterprisedt.net.ftp.ssl.B.<init>(Unknown Source)
at com.enterprisedt.net.ftp.ssl.SSLFTPClient.connect(Unknown Source)
at Demo.main(Demo.java:61)
[/error]
Here is my code
try {
// create client
log.info("Creating FTPS (explicit) client");
ftp =
new SSLFTPClient(
host,22);
// turn off server validation
log.info("Turning off server validation");
ftp.setValidateServer(false);
// connect to the server
log.info("Connecting to server " + host);
ftp.connect();
The error is happening on ftp.connect()