Page 1 of 2

SSL, HTTPS in Love2D

Posted: Mon Jun 18, 2018 8:18 pm
by Spar
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.

Re: SSL, HTTPS in Love2D

Posted: Mon Jun 18, 2018 9:30 pm
by DarkShroom

Re: SSL, HTTPS in Love2D

Posted: Tue Jun 19, 2018 8:08 am
by Spar
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

Re: SSL, HTTPS in Love2D

Posted: Tue Jun 19, 2018 11:37 am
by DarkShroom
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

Re: SSL, HTTPS in Love2D

Posted: Tue Jun 19, 2018 6:30 pm
by Spar
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.

Re: SSL, HTTPS in Love2D

Posted: Tue Jun 19, 2018 8:10 pm
by pgimeno
Googling for luasec binaries gives a thread in this forum. viewtopic.php?t=76728

Re: SSL, HTTPS in Love2D

Posted: Tue Jun 19, 2018 10:24 pm
by Spar
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'

Re: SSL, HTTPS in Love2D

Posted: Tue Jun 19, 2018 10:30 pm
by DarkShroom
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

Re: SSL, HTTPS in Love2D

Posted: Tue Jun 19, 2018 10:38 pm
by DarkShroom
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)

Re: SSL, HTTPS in Love2D

Posted: Tue Jun 19, 2018 11:27 pm
by pgimeno
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