android ftp file tranfer over explicit TLS

后端 未结 3 635
梦毁少年i
梦毁少年i 2021-02-06 17:27

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

3条回答
  •  情歌与酒
    2021-02-06 17:56

    You can add library trust manager that accepts all certificate instead of creating one.

    FTPSClient mFtps = new FTPSClient();
    mFtps.setTrustManager(TrustManagerUtils.getAcceptAllTrustManager());
    

提交回复
热议问题