This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

SSL communication
#1
Hello,
My LogicMachine communicates with second device via TCP (outgoing from LogicMachine) and HTTP (incoming to LogicMachine) protocols , I want to secure them with SSL. I can ensure SSL certificate with JavaScript in second device.




When I create socket it runs this code:

 
  local host, port = "IP address", portNO.
  local socket = require("socket")
  local tcp = assert(socket.tcp())

  tcp:connect(host, port)

--some code here

  tcp:send(value)
  tcp:close()


this is SSL unsecured, when I want to send value to server, 

and when I receive data I create socket and send feedback data via

socket:send(value);   


Is there some simple way to secure this communication with SSL in LogicMachine's Lua script? 

Thank you!

Marek H.
Reply


Messages In This Thread
SSL communication - by hrebik - 03.02.2016, 12:49
RE: SSL communication - by admin - 03.02.2016, 16:12
RE: SSL communication - by hrebik - 04.02.2016, 09:14
RE: SSL communication - by admin - 04.02.2016, 09:42
RE: SSL communication - by hrebik - 05.02.2016, 11:31
RE: SSL communication - by admin - 05.02.2016, 17:55

Forum Jump: