Verify JWT Signature using the certificate.pem

Hi,

I have a JWT, I need to verify its signature on C#
I’m trying to validate it using the certificate (—BEGIN CERTIFICATE— bicdsbhicsbsdbsc… —ENDE CERTIFICATE—)

I’ve been trying to use JOSE-JWT
But when I try to decode the jwt I get “Invalid signature”
And when I do it Manually in jwt.io I get Valid Signature

any tips on to how to verify the tokens signature on C# when you only have the Token and the certificate?