Following configuration instructions there, I edited .conf.in ocsigenserver configuration file adding
<ssl> <certificate>/absolute_path_to/certificate.pem</certificate> <privatekey>/absolute_path_to/privkey.pem</privatekey> </ssl>
<securecookies value="true" />.
I modified default PORT variable from Makefile.options from 80 to 443 (default port for https).
I built again the project with
make all sudo make install sudo PATH=$PATH OCAMLPATH=$OCAMLPATH LD_LIBRARY_PATH=$LD_LIBRARY_PATH make run.opt
and I could not connect in https to the site. (a request in http was immediately rejected while a request in https was timing out after a while, with my browser console warning 6 cookies will be treated as cross-site from my app url as the scheme does not match (in French :
Le cookie « eliomservicesession|S|||userindep » sera bientôt traité comme un cookie intersite vis-à-vis de « https://www.app.com/ » car le schéma ne correspond pas.).
I found nothing interesting in logfiles.
Here is the server console output when I launch the server in case it is useful:
[WARNING] Running as root is not recommended ==== The website is available at http://localhost:443 ==== ocsigenserver.opt "-v" -c /usr/local/etc/app/app.conf ocsigenserver.opt: ocsigen:config: While parsing config file, tag <host>: No defaulthostname, assuming it is "ip-some_ip.internal" ocsigenserver.opt: ocsigen:main: Ocsigen has been launched (initialisations ok)
I also tried to add attribute
protocol="HTTPS" to port setting in .conf.in file, without success.
Do you have any hint of what could be wrong with it ? (What I want is running the app https only, so if you know how to redirect http request to https with ocsigenserver I take it also )
Have a good evening !