2016-05-26 34 views
0

タイトルとして、vsftpdに「require_ssl_reuse = NO」を設定すると、次の設定がうまく機能します。Spring Integration FTPを使用して、設定なしのFTPサーバー(vsftpd on ubuntu)を接続します。 "require_ssl_reuse = NO"

これは可能ですか?Spring Integration FTPを使用して、configs "require_ssl_reuse = NO"のないvsftpdに接続する方法はありますか?

例外:

Caused by: org.springframework.messaging.MessagingException: Failed to write to '/ftp/upload/test.txt.writing' while uploading the file; nested exception is java.io.IOException: Failed to write to '/ftp/upload/test.txt.writing'. Server replied with: 522 SSL connection failed; session reuse required: see require_ssl_reuse option in vsftpd.conf man page 

はここに私の設定です:

<beans:bean id="ftpSessionFactory" class="org.springframework.integration.ftp.session.DefaultFtpsSessionFactory"> 
<beans:property name="host" value="202.101.1.106"/> 
<beans:property name="port" value="21"/> 
<beans:property name="username" value="tom"/> 
<beans:property name="password" value="tom"/> 
<beans:property name='clientMode' value='2'/> 
<beans:property name='protocols' value='TLSv1, SSLv3'/> 
</beans:bean> 
+0

[同じTLSセッションを使用してデータ接続するFTPSサーバに接続する方法](http://stackoverflow.com/questions/32398754/how-to-connect-to-ftps-server-with-data) -connection-using-same-tls-session) –

答えて

0

は、回避策のためのthe answer to this questionを参照してください。

セッションファクトリをサブクラス化し、createClientInstanceメソッドをオーバーライドします。

「改善」JIRA Issueを自由に開いて、フレームワークに機能として追加することができます。さらに、contributingを考えてみてください。

+0

こんにちはゲイリー、あなたの返事をありがとう。しかし、コンストラクタの引数 "isSharedSession"は[DefaultSftpSessionFactory](http://docs.spring.io/spring-integration/api/org/springframework/integration/sftp/session/DefaultSftpSessionFactory.html)です。 [DefaultFtpSessionFactory](http://docs.spring.io/spring-integration/api/org/springframework/integration/ftp/session/DefaultFtpSessionFactory.html)。 – Kenneth

関連する問題