I think recently there is an SSL support for fphttpserver, but I think the examples provided not really working, and tried to port something similar but also fails to generate or assign a self-signed cert, any ideas or demos?
I had similar problem, but now it works. I'm using synapse for ssl socket, just include opensslsockets into your lpr if you use synapse.
Also, I'm using self signed certs for testing and it works. Of course, eg. curl refuse to establish such connection because of self signed certificates, but with --insecure option it works ok.
Note: I've generated self signed certificates by using openssl under linux.
EDIT: This is how I've setted up https server certificates:
Application.UseSSL := True;
Application.CertificateData.HostName := MyWebServerConfig.CertificateHostName;
Application.CertificateData.KeyPassword:='';
Application.CertificateData.PrivateKey.FileName := MyWebServerConfig.CertificatePrivateKey;
Application.CertificateData.Certificate.FileName := MyWebServerConfig.CertificateCertificate;