DEV Community

Savitri Singh
Savitri Singh

Posted on

JWT decode

I have a .cer file that has ----Begin certificate -- end certificate type of data. When I pass it as string to jwt.decode it fails with parsing error. Please help on how to use .cer contents for jwt.decode

Top comments (1)

Collapse
 
rouilj profile image
John P. Rouillard

I don't think it's a JWT. Maybe an openssl certificate? Do a search for 'openssl print certificate .cer'.