Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About TLS/SSL #5

Open
flaribbit opened this issue Apr 4, 2021 · 3 comments
Open

About TLS/SSL #5

flaribbit opened this issue Apr 4, 2021 · 3 comments
Labels
wontfix This will not be worked on

Comments

@flaribbit
Copy link
Owner

flaribbit commented Apr 4, 2021

This library aims to be simple and easy to use. Using SSL libraries will make it difficult to configure and build for lua developers, so WSS connection will not be implemented.

@flaribbit flaribbit added the wontfix This will not be worked on label Apr 4, 2021
@flaribbit
Copy link
Owner Author

löve-ws with OpenSSL

@holywyvern
Copy link

Just pointing this out for people in the future.

Right now to make work of luasec in love it's a bit complex, but I'm going to write the details here:

You can use old prebuild libraries from here (https://github.com/26F-Studio/love-luasec)

  • Compile luasec or use the prebuilt library
  • Add the require for luasec local ssl = require "ssl" it's fine after line 16
  • On line 73 (it should be 74 now) just add this lines: m.socket = ssl.wrap(m.socket) and m:dohandshake()

If I'm not mistaken, the rest of the library should work without extra changes, but I'll need to test it out in more detail.

Love your pure lua implementation, it's way simpler. And yes, TSL/SSL is pure pain, indeed.

@flaribbit
Copy link
Owner Author

@holywyvern Thank you for your testing and for sharing the steps to make the lib work with luasec. Your instructions are clear and will undoubtedly help other developers who need TLS/SSL support in the future.

f6ee95ac6c30d612dd02cda180a4da21

@flaribbit flaribbit changed the title TLS/SSL About TLS/SSL Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants