Recent

Author Topic: HTTP Application problem  (Read 1342 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
HTTP Application problem
« on: June 16, 2020, 11:03:19 am »
Hi everyone, in the past few days I have created a small test program to make fpweb work with the bootstrap framework.
At present it manages a simple login and then displays some pages from a menu (not all features are implemented, precisely because it is a test). So far the utility works as I expect. But if I try to run it with UseSSL: = true then the broweser won't log me in because of the invalid certificate. How can I specify to the program where to go to get the certificate?

My source: https://github.com/XinYiMan/LazIntranet_Test

I am aware that I could turn the application into CGI and have the apache certificate used, but in my head this type of application should work on computers that do not have apache installed.

To activate and deactivate SSL just play with the custom options. By removing or adding: -dActiveSSL
« Last Edit: June 16, 2020, 11:05:32 am by xinyiman »
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

nummer8

  • Full Member
  • ***
  • Posts: 124
Re: HTTP Application problem
« Reply #1 on: June 16, 2020, 05:41:45 pm »

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: HTTP Application problem
« Reply #2 on: June 17, 2020, 08:18:27 am »
Yes, I had read that discussion. I can tell you that instead it supports https I don't understand just how to assign them a certificate.
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: HTTP Application problem
« Reply #3 on: June 21, 2020, 09:12:23 am »
If it's meant to run on local network, simply don't use the SSL. It's overkill. OTOH, if it's meant to run on a public machine, it must have proper web server capabilities anyway or the application will be exhausted soon because it handles all bad and good requests by itself. So the requirement of proper web server, if you don't like apache you can choose nginx, is unavoidable. You can learn from my experience or experience it yourself, it's your call.

 

TinyPortal © 2005-2018