I\'m posting this question after have tried over and over again to get it working, with no success.
I trying to implement a FTP file transfer in android, using apache commons li
getAcceptAllTrustManager() means no checks are done regarding the validity of the certificates. May be ok if you have control end-to-end of the sites involved. See: Trusting all certificates using HttpClient over HTTPS