Logic Machine Forum
ssl.https TLS 1.3 - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: ssl.https TLS 1.3 (/showthread.php?tid=2950)



ssl.https TLS 1.3 - Thomas - 02.11.2020

Hi
Is there available ssl.https with TLS 1.3 support?

I'm getting
error:1409442E:lib(20):func(148):reason(1070)


when I try:
Code:
url=https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?softwaretype=PWS+Jung+2225WSU&solarradiation=154.96&humidity=78.08&dewptf=57.54&baromin=29.9834279983681&tempf=64.58&winddir=200&ID=MYID&windspeedmph=4.94377&action=updateraw&dateutc=2020-11-02+11%3A55%3A11&PASSWORD=XXXX

https = require("ssl.https")

res, code, hdrs, stat = https.request(url)
log(res, code, hdrs, stat)

Log:
weatherunderground 02.11.2020 13:36:17
Code:
* arg: 1
Code:
  * nil
Code:
* arg: 2
Code:
  * string: error:1409442E:lib(20):func(148):reason(1070)
Code:
* arg: 3
Code:
  * nil
Code:
* arg: 4
Code:
  * nil

and I think it's TLS related issue.
I tried
Code:
local r, c, h, s = https.request{
    url = url,
    protocol = "tlsv1.3"
}
but it says 1.3 is not supported.


RE: ssl.https TLS 1.3 - admin - 02.11.2020

TLS 1.3 works in 2020 RC firmware. You don't have to specify TLS version there as the SSL library will automatically negotiate the highest supported version by both client and server.
You can request https://check-tls.akamai.io/v1/tlsinfo.json to quickly check TLS 1.3 support.