When attempting to connect to a WS_FTP server (6.1) from lftp
(4.0.5) using FTP/SSL and both client/server certificates, I'm
finding that data/list connections won't work. The initial
control connection via SSL works fine; but then when I attempt
to download a file I get:
**** SSL_connect: error:00000000:lib(0):func(0):reason(0)
In researching the issue, it seems as though the problem may be
related to poor (or pehaps no?) SSL session reuse capabilities in
WS_FTP server. When connecting to the same server in curl I am able
to bypass the problem by using the --no-sessionid command line
parameter, which forces the entire SSL handshake/connection to be
reprocessed when the data connection is established and all then
proceeds smoothly.
Is there a similar type of option in lftp? I am able to connect
to the server and download files when I:
set ftp:ssl-protect-data off
set ftps:initial-prot C
but if possible I'd like to have the ssl enabled.
Any help or clarification would be appreciated!
Dan