[SOLVED]Handling https - self signed certificates with restbridge demo lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- zeljko · 2021-12-13 10:41 Trying to setup self signed certificates into sqldbrestapi server (components/sqldbrest/demo/restbridge/restserver.lpi) for development purposes, but it does not work. eg using https://deliciousbrains.com/ssl-certificate-authority-for- local-https-development trick to create certificages. nginx works fine with this certs, but sqldbrestapi server with ssl=on does not work. There's already old topic where same problem exists but seem that there's no solution for problem. https://forum.lazarus.freepascal.org/index.php/topic,46906.msg378781.h tml#msg378781 Anyone ? ---------------------------------------------------------------------- zeljko · 2022-04-04 14:21 Fixed with latest synapse version. Certificate must be valid. I've setted up self signed certificate without password. For development (on linux) using trick in /etc/hosts for hostname eg. # my devel machine eth0 192.168.xx.xx   api.mydomain.com #self signed cert is created with api.mydomain.com Application.CertificatePrivateKey := 'mycert.key'; Application.Certificate := 'mycert.crt'; And it works