17.01.2020, 22:08
Hi,
Does encdec support rsa with sha256? I would like to generate a JWT token.
Thanks
Does encdec support rsa with sha256? I would like to generate a JWT token.
Thanks
Support for RS256 (RSA Signature with SHA-256)
|
17.01.2020, 22:08
Hi,
Does encdec support rsa with sha256? I would like to generate a JWT token. Thanks
20.01.2020, 12:45
I found this library https://github.com/spacewander/lua-resty...ty/rsa.lua, which seems to use openssl. I believe this is installed and should work?
Would the usage then be similar as described in this post? https://forum.logicmachine.net/showthrea...7#pid10237 Do I need to do anything special to use the bitops? http://bitop.luajit.org/ Thanks
20.01.2020, 13:09
(20.01.2020, 13:09)admin Wrote: See this: https://forum.logicmachine.net/showthrea...2#pid15322 Hi, I am not sure if the encdec or AES implementation are the same as the RSA encryption, in the JWT spec https://tools.ietf.org/html/rfc7518#section-3 I read RS256 is equal to RSASSA-PKCS1-v1_5 using SHA-256. Are you suggesting to calculate the signature myself using the hmacsha256 of encdec instead of using the openssl implementation?
27.01.2020, 07:40
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"
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. I get Quote:User library hmac:85: Symbol not found: EVP_md5 Tried to upgrade to the latest firmware, but that did not resolve the issue. I am using a LM3 Reactor v2.
01.02.2020, 09:10
You need to disable auto-load for this library. user.aes must be loaded first because it loads ssl library, otherwise you will get this error.
|
« Next Oldest | Next Newest »
|