Checking understanding: PB and HTTPS

Just starting out? Need help? Post your questions and find answers here.
bsilver
User
User
Posts: 27
Joined: Tue Jun 27, 2023 3:36 pm

Checking understanding: PB and HTTPS

Post 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!
User avatar
idle
Always Here
Always Here
Posts: 5840
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Checking understanding: PB and HTTPS

Post 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.
infratec
Always Here
Always Here
Posts: 7588
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Checking understanding: PB and HTTPS

Post by infratec »

At the moment it is not possible with the inbuild procedures.

But ....

you can use this:

viewtopic.php?p=593738
Post Reply