How do I configure client authentication with generated certificate in apache-commons net

前端 未结 2 2018
清歌不尽
清歌不尽 2020-12-18 13:46

First off, I know there is a similar question here but it doesn\'t answer my doubts. I have a FTPS server (vsftpd) configured with SSL.

I\'ve generated the appropria

2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-18 14:19

    you have to generate your own keystore from previous comment.

    Now use this link https://issues.apache.org/jira/browse/NET-326 Find this comment (Bogdan Drozdowski added a comment - 10/Mar/11 15:16) and do FTPSCLient(SSLContext sslContext) constructor like in this comment, and your ftpsClient will work with certificate and private key auth.

提交回复
热议问题