ftps Problem only with 64bit Totalcommander

English support forum

Moderators: sheep, Hacker, Stefan2, white

Post Reply
hautele
Junior Member
Junior Member
Posts: 3
Joined: 2019-10-12, 08:02 UTC

ftps Problem only with 64bit Totalcommander

Post by *hautele » 2019-10-12, 08:16 UTC

Hi,
I have problems with TLS session reasumption when using ftps servers with 64-bit TotalCommander.
The datachannel cannot be established.

150 Opening data channel for directory listing of "/"
Data handshake failed: -2146893052
ABOR

The ftps connection works fine if i start the 32-bit Version of Totalcommander (totalcmd.exe)

150 Opening data channel for directory listing of "/"
Download
Waiting for server...

I see in the ftp log that for 32/64 bit TotalCommander there are different dlls used.

totalcmd64.exe: --> Using sChannel (Secur32.dll) for SSL/TLS connection.
totalcmd.exe: --> SSL: Libraries loaded OK! c:\wtool\totalcmd\libeay32.dll

Somebody here who could help me with this issue ?
Thanks a lot,
br

User avatar
sqa_wizard
Power Member
Power Member
Posts: 3495
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Re: ftps Problem only with 64bit Totalcommander

Post by *sqa_wizard » 2019-10-12, 11:12 UTC

totalcmd.exe: --> SSL: Libraries loaded OK! c:\wtool\totalcmd\libeay32.dll
Obviously you have installed the 32-bit version of SSL library "libeay32.dll" => TC uses the OpenSSL library correctly

All you need is the same library (same name but in 64-bit) copied to c:\wtool\totalcmd\64\libeay32.dll
#5767 Personal license

hautele
Junior Member
Junior Member
Posts: 3
Joined: 2019-10-12, 08:02 UTC

Re: ftps Problem only with 64bit Totalcommander

Post by *hautele » 2019-10-12, 14:04 UTC

Hi,
Thanks for your reply.
I did what you've suggested, but it still does not work.
ftp log shows still

Using sChannel (Secur32.dll) for SSL/TLS connection.

However if i monitor totalcmd64.exe with sysinternals procmon i see that libeay32, libssl32 and ssleay32.dll are loaded from .\64\ directory.

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37734
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: ftps Problem only with 64bit Totalcommander

Post by *ghisler(Author) » 2019-10-13, 11:29 UTC

Using sChannel (Secur32.dll) for SSL/TLS connection.
When TC reports that it uses sChannel (Secur32.dll), then OpenSSL is not used.

Unfortunately Microsoft has completely broken SSL session resumption in sChannel (Secur32.dll) in the recent security update:
KB4517389 (Windows 10 1903)
KB4520008 (Windows 10 1803)
KB4520005 (Windows 8.1).
sChannel no longer works with ANY servers which need SSL session resumption.

Therefore the only solution now is to use OpenSSL.
I have just tested it - it works with the latest OpenSSL dlls both in TC 32-bit and 64-bit. You can download them here:
https://indy.fulgan.com/SSL/?C=N;O=D

For the 64-bit version, make sure to put the two dlls in the folder "64" below the folder where TC 64-bit is installed!
To find the right base folder, paste the following command in the command line above F5, F6 buttons and press ENTER;
cd %commander_path%
Here you need to create folder "64" (without the quotes) and then put the dlls inside.
Author of Total Commander
http://www.ghisler.com

hautele
Junior Member
Junior Member
Posts: 3
Joined: 2019-10-12, 08:02 UTC

Re: ftps Problem only with 64bit Totalcommander

Post by *hautele » 2019-10-13, 14:02 UTC

Thank you very much for your efforts to check this issue.
Session reasumption is working now!!

SSL: Libraries loaded OK! C:\wtool\totalcmd\64\libeay32.dll

br,

Post Reply