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.https TLS 1.3
#1
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.
LM5Lp, firmware: 2018.08.22 and 2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259
Reply
#2
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.
Reply


Forum Jump: