SSL, HTTPS in Love2D

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Spar
Prole
Posts: 5
Joined: Mon Jun 18, 2018 7:40 pm

SSL, HTTPS in Love2D

Post by Spar » Mon Jun 18, 2018 8:18 pm

Hello, Community.

I have a problem with making HTTPS requests.
I want to use sites API, they strictly want secure connection.
I tried to insert luasocket in Love2D but it's was unsuccessful.

Did someone try set up HTTPS SSL connection in Love2D? I'm using it only for one PC. OpenSSL installed.

Thanks.

DarkShroom
Citizen
Posts: 86
Joined: Mon Jul 17, 2017 2:07 pm

Re: SSL, HTTPS in Love2D

Post by DarkShroom » Mon Jun 18, 2018 9:30 pm


Spar
Prole
Posts: 5
Joined: Mon Jun 18, 2018 7:40 pm

Re: SSL, HTTPS in Love2D

Post by Spar » Tue Jun 19, 2018 8:08 am

DarkShroom wrote:
Mon Jun 18, 2018 9:30 pm
haven't done this myself but perhaps:

https://stackoverflow.com/questions/828 ... est-in-lua

=>

https://github.com/brunoos/luasec/wiki

?
I can't understand what I need to do with luasec, there's no dll or lua libraries to work

DarkShroom
Citizen
Posts: 86
Joined: Mon Jul 17, 2017 2:07 pm

Re: SSL, HTTPS in Love2D

Post by DarkShroom » Tue Jun 19, 2018 11:37 am

sorry the link was wrong (it was the wiki):

https://github.com/brunoos/luasec

unfortunately i don't have the time to implement this yet (or possibly even the capability, it needs OpenSSL, this might limit it's cross platform capability), you may need to keep asking or try the above repository

Spar
Prole
Posts: 5
Joined: Mon Jun 18, 2018 7:40 pm

Re: SSL, HTTPS in Love2D

Post by Spar » Tue Jun 19, 2018 6:30 pm

DarkShroom wrote:
Tue Jun 19, 2018 11:37 am
sorry the link was wrong (it was the wiki):

https://github.com/brunoos/luasec

unfortunately i don't have the time to implement this yet (or possibly even the capability, it needs OpenSSL, this might limit it's cross platform capability), you may need to keep asking or try the above repository
I wrote before, that I don't have limits with software. I will use it only for my PC, not like game. OpenSSL is installed.

I don't know how to correctly install luasec.

User avatar
pgimeno
Party member
Posts: 2311
Joined: Sun Oct 18, 2015 2:58 pm

Re: SSL, HTTPS in Love2D

Post by pgimeno » Tue Jun 19, 2018 8:10 pm

Googling for luasec binaries gives a thread in this forum. viewtopic.php?t=76728

Spar
Prole
Posts: 5
Joined: Mon Jun 18, 2018 7:40 pm

Re: SSL, HTTPS in Love2D

Post by Spar » Tue Jun 19, 2018 10:24 pm

pgimeno wrote:
Tue Jun 19, 2018 8:10 pm
Googling for luasec binaries gives a thread in this forum. viewtopic.php?t=76728
They're too old.

Code: Select all

Error: error loading module 'ssl' from file '.\ssl.dll':
        The specified procedure could not be found.

stack traceback:
        [C]: at 0x7ffa0d175b40
        [C]: in function 'require'
        main.lua:2: in main chunk
        [C]: in function 'require'
        [string "boot.lua"]:429: in function <[string "boot.lua"]:275>
        [C]: in function 'xpcall'

DarkShroom
Citizen
Posts: 86
Joined: Mon Jul 17, 2017 2:07 pm

Re: SSL, HTTPS in Love2D

Post by DarkShroom » Tue Jun 19, 2018 10:30 pm

Spar wrote:
Tue Jun 19, 2018 6:30 pm
DarkShroom wrote:
Tue Jun 19, 2018 11:37 am
sorry the link was wrong (it was the wiki):

https://github.com/brunoos/luasec

unfortunately i don't have the time to implement this yet (or possibly even the capability, it needs OpenSSL, this might limit it's cross platform capability), you may need to keep asking or try the above repository
I wrote before, that I don't have limits with software. I will use it only for my PC, not like game. OpenSSL is installed.

I don't know how to correctly install luasec.
sorry like i say, i don't have time to implement this, or any use for it (it's not going to be cross platform, i don't care about code that just works on windows, it's a wrapper, i have mac that's deprecating OpenSSL).... bump for forum, however i've not actually seen anyone tackle this issue yet, you might be the first... i just linked you to the route i'd take... sometimes we have to be the first, that's how open source works

good luck though when some OS changes and it's not supported

i would actually try and see if you can get any possibility of any support for this in Love 2D itself... this is because really encryption should be complied, there's just no point bothering if not imo

I'd totally be behind you in asking if anyone is wanting to implement any stuff like this in the c++

SUMMARY: so this is no easy s**t

DarkShroom
Citizen
Posts: 86
Joined: Mon Jul 17, 2017 2:07 pm

Re: SSL, HTTPS in Love2D

Post by DarkShroom » Tue Jun 19, 2018 10:38 pm

i'd like to ask an open question (to an expert)

so i'd like something like this maybe later to.... does anyone have any eperience or understanding if raw lua jit would be fast enough for this???

(if we think it might be, but this is damn weird, you might have an option, albeit, possibly a slow one)

User avatar
pgimeno
Party member
Posts: 2311
Joined: Sun Oct 18, 2015 2:58 pm

Re: SSL, HTTPS in Love2D

Post by pgimeno » Tue Jun 19, 2018 11:27 pm

Spar wrote:
Tue Jun 19, 2018 10:24 pm
pgimeno wrote:
Tue Jun 19, 2018 8:10 pm
Googling for luasec binaries gives a thread in this forum. viewtopic.php?t=76728
They're too old.
LMGTFY:

https://github.com/pkulchenko/ZeroBrane ... /bin/clibs

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 40 guests