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?
Is there any way to add SSL/TLS to an application made in purebasic for socket / http / websocket purposes?
- skinkairewalker
- 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?
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.
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.

- skinkairewalker
- 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?
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?
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?
- NicTheQuick
- 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?
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.
Re: Is there any way to add SSL/TLS to an application made in purebasic for socket / http / websocket purposes?
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?
libtls implementation -> https://www.purebasic.fr/english/viewtopic.php?t=80368skinkairewalker 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?
or libcurl -> https://www.purebasic.fr/english/viewtopic.php?p=591235
Christos