Hello Stunnel mailing list,
We are trying to set Stunnel (5.75) to automatically open as a start up app on Windows 11.
When the PC powers up, it gives this error message:
stunnel.exe - System Error The code execution cannot proceed because libcrypto-3-x64.dll was not found. Reinstalling the program may fix this problem.
We have tried reinstalling, but to no avail.
NB, Stunnel works fine if opened manually. This was not an issue with Windows 10.
Has anyone else had this problem (and solved it)?
Many thanks,
Ed Smithson
Ed Smithson Reader Services Librarian Nuffield College, Oxford, OX1 1NF +44(0) 1865 278551
[cid:image001.jpg@01DBF637.F9083360]https://bsky.app/profile/nuffieldlibrary.bsky.social[cid:image002.png@01DBF637.F9083360]https://www.facebook.com/NuffieldCollegeLibrary[cid:image003.png@01DBF637.F9083360]https://www.instagram.com/nuffieldlibrary/
[cid:image004.png@01DBF637.F9083360]https://www.nuffield.ox.ac.uk/
* Edward Smithson via stunnel-users wrote:
We are trying to set Stunnel (5.75) to automatically open as a start up app on Windows 11.
How? Shortcut in Start Menu\Programs\Startup, Run key in the Registry, registered as a service, something else?
Which stunnel version do you use?
When the PC powers up, it gives this error message:
*stunnel.exe - System Error*
*The code execution cannot proceed because libcrypto-3-x64.dll was not found. Reinstalling the program may fix this problem.*
When do you get this message? After a user logs on, or on the logon screen when the PC starts up? If you want it to run before user logon, you have to install it as a service, but that was the same in 10.
What DLLs are present in the same directory as stunnel.exe?
You can run it as a service which works well. Did you try doing that?
On 7/16/2025 11:10 AM, Christian Ullrich via stunnel-users wrote:
- Edward Smithson via stunnel-users wrote:
We are trying to set Stunnel (5.75) to automatically open as a start up app on Windows 11.
How? Shortcut in Start Menu\Programs\Startup, Run key in the Registry, registered as a service, something else?
Which stunnel version do you use?
When the PC powers up, it gives this error message:
*stunnel.exe - System Error*
*The code execution cannot proceed because libcrypto-3-x64.dll was not found. Reinstalling the program may fix this problem.*
When do you get this message? After a user logs on, or on the logon screen when the PC starts up? If you want it to run before user logon, you have to install it as a service, but that was the same in 10.
What DLLs are present in the same directory as stunnel.exe?
Thanks for your reply, Christian [and others]
We are running Stunnel as a service (Stunnel TLS wrapper) It is version 5.75 We get the message after a user logs on The following DLLs are present in Program Files (x86)\stunnel\bin libcrypto-3-x64.dll libgcc_s_seh-1.dll libssl-3-x64.dll libssp-0.dll
Yours,
Ed
-----Original Message----- From: Christian Ullrich via stunnel-users stunnel-users@stunnel.org Sent: 16 July 2025 16:11 To: stunnel-users@stunnel.org Subject: [stunnel-users] Re: Error message when trying to set Stunnel as a start up app
* Edward Smithson via stunnel-users wrote:
We are trying to set Stunnel (5.75) to automatically open as a start up app on Windows 11.
How? Shortcut in Start Menu\Programs\Startup, Run key in the Registry, registered as a service, something else?
Which stunnel version do you use?
When the PC powers up, it gives this error message:
*stunnel.exe - System Error*
*The code execution cannot proceed because libcrypto-3-x64.dll was not found. Reinstalling the program may fix this problem.*
When do you get this message? After a user logs on, or on the logon screen when the PC starts up? If you want it to run before user logon, you have to install it as a service, but that was the same in 10.
What DLLs are present in the same directory as stunnel.exe?
-- Christian
_______________________________________________ stunnel-users mailing list -- stunnel-users@stunnel.org To unsubscribe send an email to stunnel-users-leave@stunnel.org
Hi Edward,
Can you check the NTFS file permissions of the stunnel bin directory and DLL files? If stunnel is configured yo run as a service , it should run with the System account. It would be a very strange case, but maybe system doesn’t have permissions to read and execute the DLLs… Also check the system PATH.
Regards Jose
On 18/07/2025, at 1:54 AM, Edward Smithson via stunnel-users stunnel-users@stunnel.org wrote:
Thanks for your reply, Christian [and others]
We are running Stunnel as a service (Stunnel TLS wrapper) It is version 5.75 We get the message after a user logs on The following DLLs are present in Program Files (x86)\stunnel\bin libcrypto-3-x64.dll libgcc_s_seh-1.dll libssl-3-x64.dll libssp-0.dll
Yours,
Ed
-----Original Message----- From: Christian Ullrich via stunnel-users stunnel-users@stunnel.org Sent: 16 July 2025 16:11 To: stunnel-users@stunnel.org Subject: [stunnel-users] Re: Error message when trying to set Stunnel as a start up app
- Edward Smithson via stunnel-users wrote:
We are trying to set Stunnel (5.75) to automatically open as a start up app on Windows 11.
How? Shortcut in Start Menu\Programs\Startup, Run key in the Registry, registered as a service, something else?
Which stunnel version do you use?
When the PC powers up, it gives this error message:
*stunnel.exe - System Error*
*The code execution cannot proceed because libcrypto-3-x64.dll was not found. Reinstalling the program may fix this problem.*
When do you get this message? After a user logs on, or on the logon screen when the PC starts up? If you want it to run before user logon, you have to install it as a service, but that was the same in 10.
What DLLs are present in the same directory as stunnel.exe?
-- Christian
stunnel-users mailing list -- stunnel-users@stunnel.org To unsubscribe send an email to stunnel-users-leave@stunnel.org _______________________________________________ stunnel-users mailing list -- stunnel-users@stunnel.org To unsubscribe send an email to stunnel-users-leave@stunnel.org
* Edward Smithson wrote:
We are running Stunnel as a service (Stunnel TLS wrapper) It is version 5.75 We get the message after a user logs on
That sounds unusual. When a service cannot start, the user should not get a message to that effect.
Check the System event log for entries that this service failed to start, please. Also, can you show the output of running
sc.exe qc <name of service>
?
You mentioned originally that it works when opened manually. Did you mean it works when you run it interactively, or when you start the service again? If the former, what happens if you try starting the service again?
The following DLLs are present in Program Files (x86)\stunnel\bin libcrypto-3-x64.dll libgcc_s_seh-1.dll libssl-3-x64.dll libssp-0.dll
Looks OK, too, and because it works when run by hand, it obviously is. To my knowledge libgcc_s_seh is not needed, but having it there doesn't hurt either.
I have just about exactly the same configuration as you do, except I repackage stunnel into my own MSI that also does the service registration. It has always worked well on both 10 and 11.
If you like digging through enormous logs, you can do this:
- Get Sysinternals Process Monitor https://learn.microsoft.com/en-gb/sysinternals/downloads/procmon
- Run it and set the filter to "Process Name contains stunnel"
- In the Filter menu, check Drop Filtered Events
- In the Edit menu, select Clear Display
Now you have two options depending on whether starting the service after login works or not. If it does _not_, just try starting it again to get the log. Otherwise:
- In the Options menu, select Enable Boot Logging
- Restart the computer
- Log on as the same user that you ran Process Monitor as
- Start Process Monitor again
Now go dig. You can search for "libcrypto". I just tried that, and the only non-SUCCESS entries were "FILE LOCKED WITH ONLY READERS", and that is expected behavior. Hopefully you will find something else to put you on the right track.
On 16 Jul 2025 at 13:04, Edward Smithson via stunnel-users wrote:
To: "stunnel-users@stunnel.org" stunnel-users@stunnel.org Date sent: Wed, 16 Jul 2025 13:04:19 +0000 Subject: [stunnel-users] Error message when trying to set Stunnel as a start up app patches" <stunnel-users.stunnel.org> From: Edward Smithson via stunnel-users stunnel-users@stunnel.org Send reply to: Edward Smithson edward.smithson@nuffield.ox.ac.uk
Hello Stunnel mailing list, We are trying to set Stunnel (5.75) to automatically open as a start up app on Windows 11. When the PC powers up, it gives this error message: stunnel.exe - System Error The code execution cannot proceed because libcrypto-3-x64.dll was not found. Reinstalling the program may fix this problem. We have tried reinstalling, but to no avail. NB, Stunnel works fine if opened manually. This was not an issue with Windows 10. Has anyone else had this problem (and solved it)?
Looks like that file is located in the stunnel directory, which is probable not in path. What method are you using to load it at power up?
Could create a link to the dll, or copy it to windows folder in path.
Just a quick look.
Many thanks, Ed Smithson Ed Smithson
Reader Services Librarian Nuffield College, Oxford, OX1 1NF +44(0) 1865 278551
+------------------------------------------------------------+ Michael D. Setzer II - Computer Science Instructor (Retired) mailto:mikes@guam.net mailto:msetzerii@gmail.com mailto:msetzerii@gmx.com Guam - Where America's Day Begins G4L Disk Imaging Project maintainer http://sourceforge.net/projects/g4l/ +------------------------------------------------------------+