FTP with TLS - SSL: Loaded, but libeay32 was already loaded from: D:\WINCMD\addons\FS\sftp\libeay32.dll

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
tmcdos
Junior Member
Junior Member
Posts: 30
Joined: 2006-05-22, 18:29 UTC
Location: Sofia, Bulgaria
Contact:

FTP with TLS - SSL: Loaded, but libeay32 was already loaded from: D:\WINCMD\addons\FS\sftp\libeay32.dll

Post by *tmcdos »

I am using the SFTP plugin 2.70 with a 32-bit Total Commander 10.51
I have a stored FTP account whose flag SSL/TLS is enabled.
Normally, I have no issues connecting through this FTP account over TLS:

Code: Select all

Using sChannel (Secur32.dll) for SSL/TLS connection.
Connect to: (25.10.2022 16:30:44)
hostname=fantasygames-southbend.com
username=xxxxxxx
startdir=/
fantasygames-southbend.com=139.64.237.141
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 09:30. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
AUTH TLS
234 AUTH TLS OK.
Client handshake...
Method: TLSv1.2
Cert subject: CN=fantasygames-southbend.com
Cert issuer: C=US, O=Let's Encrypt, CN=R3
Chain verification: Subject: C=US, O=Let's Encrypt, CN=R3 (cert store)
Chain verification: Subject: C=US, O=Internet Security Research Group, CN=ISRG Root X1 (cert store)
Chain verification (2): OK
USER xxxxxx
331 User ******** OK. Password required
PASS ***********
230-This server supports FXP transfers
However, if I connect even once by SSH/SFTP (using the SFTP plugin) to any server (it does not matter which server) and then disconnect from SSH and try to use the above FTP account over TLS then I get a weird error from Total Commander:

Code: Select all

SSL: Loaded, but libeay32 was already loaded from: D:\WINCMD\addons\FS\sftp\libeay32.dll
Connect to: (25.10.2022 16:21:30)
hostname=fantasygames-southbend.com
username=xxxxxxx
startdir=/
fantasygames-southbend.com=139.64.237.141
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 09:21. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
AUTH TLS
234 AUTH TLS OK.
SSL_read returned -1, SSL_get_error=1
and connection fails.
And I have to quit Total Commander before I can connect with FTP over TLS.
Any workarounds ?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50861
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: FTP with TLS - SSL: Loaded, but libeay32 was already loaded from: D:\WINCMD\addons\FS\sftp\libeay32.dll

Post by *ghisler(Author) »

You either need to remove the openssl dlls from the plugin directory and move them to the Total Commander directory, so both functions can use them. Or explicitly disable openssl for the internal FTPS function:

wcx_ftp.ini
[General]
PreferOpenSSL=0
Author of Total Commander
https://www.ghisler.com
tmcdos
Junior Member
Junior Member
Posts: 30
Joined: 2006-05-22, 18:29 UTC
Location: Sofia, Bulgaria
Contact:

Re: FTP with TLS - SSL: Loaded, but libeay32 was already loaded from: D:\WINCMD\addons\FS\sftp\libeay32.dll

Post by *tmcdos »

Thanks, disabling OpenSSL fixed the issue!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50861
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: FTP with TLS - SSL: Loaded, but libeay32 was already loaded from: D:\WINCMD\addons\FS\sftp\libeay32.dll

Post by *ghisler(Author) »

Moderator message

Moved to English forum
Author of Total Commander
https://www.ghisler.com
Post Reply