Is there any way to add SSL/TLS to an application made in purebasic for socket / http / websocket purposes?

Everything else that doesn't fall into one of the other PB categories.
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 782
Joined: Fri Dec 04, 2015 9:26 pm

Is there any way to add SSL/TLS to an application made in purebasic for socket / http / websocket purposes?

Post by skinkairewalker »

Hello Everyone !
Is there any way to add SSL/TLS to an application made in purebasic for socket / http / websocket purposes?

I've seen some languages allow adding the letsencrypt certificate directly to the application itself, but I've also heard that there's a way to configure the certificate on the vps...

Can anyone give me some direction?
infratec
Always Here
Always Here
Posts: 7618
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Is there any way to add SSL/TLS to an application made in purebasic for socket / http / websocket purposes?

Post by infratec »

You can us the libressl stuff where you already asked for the server stuff.

But why you need ssl for websocket?
I use websocket also on macOS with the webkit/Safari environment on localhost.
If you stay on localhost you don't need ssl even apple allow this. :wink:
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 782
Joined: Fri Dec 04, 2015 9:26 pm

Re: Is there any way to add SSL/TLS to an application made in purebasic for socket / http / websocket purposes?

Post by skinkairewalker »

Hello infratec, thank you for your help!!
Well, I plan to create an application using websocket that is public, so I'm afraid that without some SSL the application will not be secure in a public production environment.

What is your view on this?
User avatar
NicTheQuick
Addict
Addict
Posts: 1519
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: Is there any way to add SSL/TLS to an application made in purebasic for socket / http / websocket purposes?

Post by NicTheQuick »

Today a lot of web-applications don't terminate TLS. Instead they rely on an additional TLS proxy like nginx or apache. It's the most common way to handle it like this. Or in case it runs in some kind of docker/kubernetes environment, there are even more options to terminate TLS easily.
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: 5899
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Is there any way to add SSL/TLS to an application made in purebasic for socket / http / websocket purposes?

Post by idle »

I've just built libdatachannel. A WebRTC lib It has everything you should need in one package. Reliable udp transport for video and audio streams or data it supports websockets has SSL and also facilities making p2p connections via a stun turn server and it has websockets with ssl support
plouf
Enthusiast
Enthusiast
Posts: 282
Joined: Fri Apr 25, 2003 6:35 pm
Location: Athens,Greece

Re: Is there any way to add SSL/TLS to an application made in purebasic for socket / http / websocket purposes?

Post by plouf »

skinkairewalker wrote: Thu Jan 04, 2024 6:13 pm
Is there any way to add SSL/TLS to an application made in purebasic for socket / http / websocket purposes?

libtls implementation -> https://www.purebasic.fr/english/viewtopic.php?t=80368

or libcurl -> https://www.purebasic.fr/english/viewtopic.php?p=591235
Christos
Post Reply