The below is the message I received when I ran the code:
220 Service ready for new user.
234 Command AUTH okay; starting TLS connection.
Connection closed without indication.
I think I am not able to connect to the FTPS server because I am not able to accept the server certificate sent by the server during the handshake.
Is it possible to develop a client for a FTPS server that accepts all the certificates ?
I have not used FTPSClient before, but I have had a similar problem with HttpClient where I need to connect to servers with a self-signed certificates. I was able to replace the default TLS TrustManger with my own, which did not complain about any certificate. Maybe you could try something similar using the setTrustManager() method.
Here are some code fragments which shows what I did: