I am having Windows 8.1, with FTP server running on IIS server. I have created a self signed certificate on IIS, and trying to connect it with FileZilla. For the first time it asks to trust the certificate or not, on trusting self signed certificate it establishes the connection.
I am trying to do same thing with enterpriseDT API. But it gives following stacktrace.
com.enterprisedt.net.ftp.ssl.SSLFTPCertificateException: Server certificate could not be validated. (use SSLFTPCertificateException.printCertificates to view certificates.)
at com.enterprisedt.net.ftp.ssl.SSLFTPControlSocket.c(SSLFTPControlSocket.java:326)
at com.enterprisedt.net.ftp.ssl.SSLFTPClient.auth(SSLFTPClient.java:1457)
at UseFTPSWithoutServerValidation.main(UseFTPSWithoutServerValidation.java:69)
This exception is thrown when auth method is called. I am trying to establish FTPS-External connection.
Any guesses why it is working with FileZilla and not as an individual Java program?