I tested with the next snippet and validation failed:
```
jwt_generate("../etc/rsa256-prv.pem", "RS256",
"data='xyz';exp=1116239032");
xinfo("====jwt: [$jwt(val)]\n");
if(jwt_verify("../etc/rsa256-pub.pem", "RS256",
"data='xyz'", "$jwt(val)")) {
xinfo("====jwt: validated\n");
} else {
xinfo("====jwt: not-validated\n");
}
```
The `exp` value is taken from your example.
If it fails for you, ask to reopen.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4007#issuecomment-2479641497
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4007/2479641497(a)github.com>