Hi All,
Sysinternals ProcMon is your friend 🙂
Problem solved.
CERTIFICATE LOCATIONS FOR WINDOWS SERVICE DIFFERENT TO WINDOWS APPLICATION!
(at least on Win10/Pro as I have) :
the cert files (supposed to be in bin/executable folder) MUST BE IN C:\Windows\SysWOW64\ folder
also a cert.pem is queried from C:\usr\local\ssl\cert (i copied the root cert to this name, however not sure if necessary)
so if sticking with Indy default names, the files are:
C:\Windows\SysWOW64\localhost.pem root cert
C:\Windows\SysWOW64\localhost.crt cert
C:\Windows\SysWOW64\localhost.key key
Selfsigned cert OK (created using XCA)
For copying to this folder, of course Admin rights are necessary.
If you are using a VMWare VM for Delphi 10.4.X, as I do, and the project files are in the shared VM drive outside the VM,
you need 2-step copy: 1) project/bin to local desktop 2) local desktop to SysWOW64
All the above is for WIN32 Service target, as I did not tryout X64 yet.
I am happy to be out of the swamp and back on the road (after fighting Windows and not Project)
I will duplicate this to new Topic for better visibility. Might it be helpful for others!
Kind Regards,
ckranich