【发布时间】:2018-08-07 20:13:31
【问题描述】:
我正在尝试将org.springframework.integration.ftp.session.DefaultFtpsSessionFactory 用于我的 FTPS 客户端,但我没有用户 ID 或密码。我有 *.cer 文件。如何使用证书创建会话工厂实例。到目前为止,我已经看过了
https://docs.spring.io/spring-integration/reference/html/ftp.html
http://tutorials.jenkov.com/java-cryptography/certificatefactory.html
How do I configure client authentication with generated certificate in apache-commons net
https://commons.apache.org/proper/commons-net/apidocs/org/apache/commons/net/ftp/FTPClient.html
我只是找不到在创建 ftpsclient 时使用证书的任何直接用法。
【问题讨论】: