31.01.2020, 20:54
(27.01.2020, 07:40)admin Wrote: Here are JWT libraries from https://github.com/cdbattags/lua-resty-jwt with some minor changes to work on LM. Create a use library with the same name for each attached file.
Code:jwt = require "user.jwt"
jwt_token = jwt:sign(
"my-secrect-key",
{
header={typ="JWT", alg="HS256"},
payload={foo="bar"}
}
)
log(jwt_token)
I get
Quote:User library hmac:85: Symbol not found: EVP_md5
stack traceback:
[C]: in function '__index'
User library hmac:85: in main chunk
[C]: in function 'require'
Library user-autoload:5: in main chunk
Tried to upgrade to the latest firmware, but that did not resolve the issue. I am using a LM3 Reactor v2.