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.
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.