522 SSL connection failed; session reuse required
This one occurs while establishing a SSL secured connection
for data exchange in FTPS e FTPES modes. The connection is
refused and the message is issued on the control channel.
The problem can be solved on the server-side, switching off the
"require_ssl_reuse" flag on the vsFTPd configuration, but it would
be nice if ftp4j could support that.
Log:
SERVER: 220 (vsFTPd 2.1.0)
CLIENT: AUTH TLS
SERVER: 234 Proceed with negotiation.
CLIENT: USER XXX
SERVER: 331 Please specify the password.
CLIENT: PASS XXX
SERVER: 230 Login successful.
CLIENT: FEAT
SERVER: 211-Features:
SERVER: AUTH SSL
SERVER: AUTH TLS
SERVER: EPRT
SERVER: EPSV
SERVER: MDTM
SERVER: PASV
SERVER: PBSZ
SERVER: PROT
SERVER: REST STREAM
SERVER: SIZE
SERVER: TVFS
SERVER: UTF8
SERVER: 211 End
CLIENT: OPTS UTF8 ON
SERVER: 200 Always in UTF8 mode.
CLIENT: PROT P
SERVER: 200 PROT now Private.
CLIENT: PASV
SERVER: 227 Entering Passive Mode (XXXXXXXXXXXXXXXXXXXXX).
CLIENT: TYPE A
SERVER: 200 Switching to ASCII mode.
CLIENT: LIST
SERVER: 150 Here comes the directory listing.
SERVER: 522 SSL connection failed; session reuse required
SUBMITTED BY: Junyan Huangfu
this is more likely a vsftpd problem
It's an old issue but it could be re-open. It's not a VSFTPD problem ! it increase security, client software needs evolution ...
Same error with FTPS proftpd server:
http://www.proftpd.org/docs/contrib/mod_tls.html#TLSOptions
Client ftp4j cannot be used while server configuration decrease this TLS security flag :
TLSOptions NoSessionReuseRequired