17.08.2017, 06:30
Replace this part:
With this:
Code:
-- create tcp client
sslparams = {
mode = "client",
protocol = "sslv3",
key = "crt/ca-key.pem",
certificate = "crt/client.pem",
cafile = "crt/ca-cert.pem",
verify = "peer",
options = {"all", "sslv3"}
}
skt = copas.wrap(socket.tcp(), sslparams)
skt, err = socket.connect('192.168.0.11', 2601)
With this:
Code:
skt = socket.tcp()
skt:settimeout(5)
skt:connect('192.168.0.11', 2601)
skt, err = ssl.wrap(skt, 'sslv23')
if not err then
skt:dohandshake()
skt = copas.wrap(skt)
end