#1 2020-06-04 14:22:20

tomek
Member
Registered: 2017-10-24
Posts: 46

TSQLHttpClient and SSL

Hi
I've enabled SSL in mormot server for test purposes (with self-signed certificate). It works with web browser and Indy client, but TSQLHttpClient fails with winhttp.dll error 12002 - timeout. How to make TSQLHttpClient (or any other client class) to work with SSL?

Regards, Tomek

Offline

#2 2020-06-04 14:41:51

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: TSQLHttpClient and SSL

Use https:// server URI and set IgnoreSSLCertificateErrors property to true if you use self-signed certificate.

Offline

#3 2020-06-04 17:54:27

tomek
Member
Registered: 2017-10-24
Posts: 46

Re: TSQLHttpClient and SSL

Hi
Adding https:// didn't actually work, but pointed me that aHttps wasn't set to true.
IgnoreSSLCertificateErrors did the job.

Thx

P.S. Maybe it would be worth to add few words to DOC about setting up the client?
https://synopse.info/files/html/Synopse … l#TITL_122

Last edited by tomek (2020-06-05 05:57:02)

Offline

Board footer

Powered by FluxBB