Implement a full SSL/TLS library

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
RichAlgeni
Addict
Addict
Posts: 935
Joined: Wed Sep 22, 2010 1:50 am
Location: Bradenton, FL

Re: Implement a full SSL/TLS library

Post by RichAlgeni »

I'm wondering if we may have been barking up the wrong tree with this? What if we just used REST protocols, with a lightweight open source web server and PureBasic intrinsic, HTTPRequest()? Seems like that, at least in my case, solves the problem.

Thoughts?
User avatar
the.weavster
Addict
Addict
Posts: 1576
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

Re: Implement a full SSL/TLS library

Post by the.weavster »

RichAlgeni wrote: Fri May 26, 2023 4:52 pm I'm wondering if we may have been barking up the wrong tree with this? What if we just used REST protocols, with a lightweight open source web server
PB already has FastCGI() commands if you're happy to put a third-party server in the mix. I've done this with Apache and it works well.
User avatar
RichAlgeni
Addict
Addict
Posts: 935
Joined: Wed Sep 22, 2010 1:50 am
Location: Bradenton, FL

Re: Implement a full SSL/TLS library

Post by RichAlgeni »

the.weavster wrote: Mon May 29, 2023 10:34 amPB already has FastCGI() commands if you're happy to put a third-party server in the mix. I've done this with Apache and it works well.
That's what I am thinking I will do.
User avatar
HeX0R
Addict
Addict
Posts: 1189
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Implement a full SSL/TLS library

Post by HeX0R »

Adding TLS to PBs Network commands is pretty easy, see here
hoerbie
Enthusiast
Enthusiast
Posts: 136
Joined: Fri Dec 06, 2013 11:57 am
Location: DE/BY/MUC

Re: Implement a full SSL/TLS library

Post by hoerbie »

Hi,

after seeing and testing the work of Opcode, idle, HexOr and infratec on https://www.purebasic.fr/english/viewto ... 78#p593078 I would really love to have TLS integrated stable in CreateNetworkServer().

Before I make an offer to Fred, maybe there are others in the PB community that would as well pay something for this and we can add the amounts? :?:
KosterNET
User
User
Posts: 34
Joined: Tue Mar 22, 2016 10:08 pm

Re: Implement a full SSL/TLS library

Post by KosterNET »

+1 for me, and I will also put in some extra ;-)
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Re: Implement a full SSL/TLS library

Post by USCode »

hoerbie wrote: Fri Feb 09, 2024 11:15 am ... Before I make an offer to Fred, maybe there are others in the PB community that would as well pay something for this and we can add the amounts? :?:
+1

Anything new on this?
User avatar
idle
Always Here
Always Here
Posts: 5836
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Implement a full SSL/TLS library

Post by idle »

The current version of libretls 3.9.2 is available in the atomicwebserver.com repo
https://github.com/idle-PB/atomic_webserver_3

The tls.pbi is thread safe and is also adapted to handle multiple servers to make a terminating reverse proxy which is a must have feature.

It's transparent to the pb network functions and fairly well tested in atomicwebserver.com which is also reverse proxying another domain with both servers running on the same machine.

It should be easy for the dev team to adapt into the network lib now it's tested but even so all that needs doing is to add static builds of libretls and we can just use tls.pbi
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 772
Joined: Fri Dec 04, 2015 9:26 pm

Re: Implement a full SSL/TLS library

Post by skinkairewalker »

Atomic_webserver_3 would be compatible with CertBot (formerly letsencrypt) or ZeroSSL (paid certificate) ?
User avatar
idle
Always Here
Always Here
Posts: 5836
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Implement a full SSL/TLS library

Post by idle »

You can use any acme client with http request you just need to run an instance on port 80 for the http request to work.
I use lets encrypt certs and use certify the web for windows
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Implement a full SSL/TLS library

Post by Fred »

Done !
User avatar
NicTheQuick
Addict
Addict
Posts: 1504
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: Implement a full SSL/TLS library

Post by NicTheQuick »

That's huge! :o
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
User avatar
idle
Always Here
Always Here
Posts: 5836
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Implement a full SSL/TLS library

Post by idle »

NicTheQuick wrote: Thu Dec 12, 2024 9:53 am That's huge! :o
building LibreTLS static on windows linux osx arm yes that's a big bonus.
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Implement a full SSL/TLS library

Post by skywalk »

Wait, that's gonna be static or external dll?
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Implement a full SSL/TLS library

Post by Fred »

Static like most of the PB libs
Post Reply