Page 1 of 1
Is there any way to add SSL/TLS to an application made in purebasic for socket / http / websocket purposes?
Posted: Thu Jan 04, 2024 6:13 pm
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?
Re: Is there any way to add SSL/TLS to an application made in purebasic for socket / http / websocket purposes?
Posted: Thu Jan 04, 2024 9:57 pm
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.

Re: Is there any way to add SSL/TLS to an application made in purebasic for socket / http / websocket purposes?
Posted: Fri Jan 05, 2024 12:40 am
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?
Re: Is there any way to add SSL/TLS to an application made in purebasic for socket / http / websocket purposes?
Posted: Fri Jan 05, 2024 11:43 am
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.
Re: Is there any way to add SSL/TLS to an application made in purebasic for socket / http / websocket purposes?
Posted: Fri Jan 05, 2024 7:39 pm
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
Re: Is there any way to add SSL/TLS to an application made in purebasic for socket / http / websocket purposes?
Posted: Sat Jan 06, 2024 6:13 am
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