In the latest FW (00.01.11.1) for the RUT240 I have to following issue trying to use the Luasec module eg:
root@Teltonika:~# lua -lssl
lua: error loading module 'ssl.core' from file '/usr/lib/lua/ssl.so':
File not found
stack traceback:
[C]: ?
[C]: in function 'require'
/usr/lib/lua/ssl.lua:7: in main chunk
[C]: ?
[C]: ?
I crosschecked the md5sum of ssl.so, ssl.lua etc with the ones of FW version 01.07.1, they all seem the same.
The only difference that I see is the upgrade of the OpenSSL library to version libssl.so.1.1
Looking to the vanilla version of OpenWRT 19.07, is see that there is a specific patch for OpenSSL versions lower than libssl.so.1.1
https://github.com/openwrt/packages/blob/openwrt-19.07/lang/luasec/patches/040-openssl-deprecated.patch
Since the GPL version on the Teltonika is the one released with 01.10 and not 01.11.1, I'm not able to crosscheck, but I assume that the upgrade to libssl.so.1.1 and not applying the patch to LuaSec is the root cause of the problem?