Hello:
I am using this library to validate a JWT token.
The problem I have is that I start from a JWK token:
{
"kty": "RSA",
"e": "AQAB",
"use": "next",
"kid": "xxxxxxx",
"alg": "RS256",
"n": "xxxxxx......"
}
The library allows you to validate the JWT token from a public key:
const char *rs_pub_key =
"-----BEGIN PUBLIC KEY-----\n"
.....
"-----END PUBLIC KEY-----";
i'm not sure how to convert the JWK token to public key in the c language. I have tried his online converter:
https://8gwifi.org/jwkconvertfunctions.jsp
and the JWT converted to public key works well with the library.
Could you give me some guidance to convert JWK to public key?
thanks.
Hello:
I am using this library to validate a JWT token.
The problem I have is that I start from a JWK token:
The library allows you to validate the JWT token from a public key:
const char *rs_pub_key =
"-----BEGIN PUBLIC KEY-----\n"
.....
"-----END PUBLIC KEY-----";
i'm not sure how to convert the JWK token to public key in the c language. I have tried his online converter:
https://8gwifi.org/jwkconvertfunctions.jsp
and the JWT converted to public key works well with the library.
Could you give me some guidance to convert JWK to public key?
thanks.