Recent

Author Topic: FPWebModule add HTTPS support  (Read 3139 times)

TheMouseAUS

  • New Member
  • *
  • Posts: 47
Re: FPWebModule add HTTPS support
« Reply #15 on: April 30, 2021, 10:24:31 pm »
Thanks everyone, I did look into using a reverse proxy but there may be times its not needed but I do see its advantages. I was hoping to get some definitive examples on how to implement HTTPS using FP-web so its well documented because currently its currently lacking a bit.

I am attaching a working example (tested on linux and mac). I have installed (today) the trunk version of both lazarus and fpc (with the fpcupdeluxe tool).

Once this is done, unpack the attachment, in pkg you will find the source to open. Compile it, go to ../bin and before launching the executable create the two necessary files with the following command

openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout privateKey.key -out certificate.crt

If then the command differs for windows I don't know, on mac and linux it works fine.

This should be all. Let me know.

Thanks for your example, I did try that but for some reason i didnt work for me but I will give it a go again.

 

TinyPortal © 2005-2018