Page 1 of 1

Checking understanding: PB and HTTPS

Posted: Wed Sep 20, 2023 4:26 am
by bsilver
I was talking to someone about PB and at one point the topic came supporting a simple HTTPS server.

I have been searching through the forums after not finding anything directly in the documentation. I'm hoping someone could verify that my understanding of the current status of HTTPS-type support is correct...
  • PB supports HTTPS requests for client-side applications only.
  • The client-side HTTPS support on Linux has an external dependency, but I don't know how or if this affects portability (compile on my Linux system and deploy to another Linux system, will there be a risk of a version mismatch or is everything statically compiled?)
  • If I wanted to create a web server in PB that encrypts the connection, I would have to somehow create a proxy front-end that implements HTTPS and forwards the connections to a basic HTTP server from PB.
  • Alternatively there are ways to use platform-specific libraries and use C-interfaces to integrate them into an application, but they tend to be non-portable.
  • It seems there is some kind of support for this with Chilkat Software plugins, but I'm not sure how version-dependent they are...ideally a solution would have minimal chance of breaking by being statically compiled for simpler distribution but I don't know how much of a problem this normally is with PB applications...?
  • I don't see any news of future support being integrated into the language for expanded HTTPS/TLS support beyond the network client support currently implemented?
Thanks for taking the time to read this question!

Re: Checking understanding: PB and HTTPS

Posted: Wed Sep 20, 2023 6:50 am
by idle
There's one native https server, though I can't remember it's name.
Generally you are going to have dependencies to the ssl lib.
I will dig out a reference if I get back to pc tonight.

Re: Checking understanding: PB and HTTPS

Posted: Wed Sep 20, 2023 9:15 am
by infratec
At the moment it is not possible with the inbuild procedures.

But ....

you can use this:

viewtopic.php?p=593738