appsup-dart / jose

Javascript Object Signing and Encryption (JOSE) library
BSD 3-Clause "New" or "Revised" License
55 stars 38 forks source link

UnimplementedError: Cannot handle netscape-comment (netscape-cert-extension 13)) #36

Closed joselicht90 closed 1 year ago

joselicht90 commented 2 years ago

Hi, I'm trying to validate a JWT that is sign with RSA256 and when y try to create a keystore from pem i get this error

UnimplementedError (UnimplementedError: Cannot handle netscape-comment (netscape-cert-extension 13))

This is my code // create a JsonWebSignature from the encoded string var _jws = JsonWebSignature.fromCompactSerialization(_jwtRaw); var _keyStore = new JsonWebKeyStore()..addKey(JsonWebKey.fromPem(_cp)); await _jws.verify(_keyStore);

rbellens commented 1 year ago

I guess this is an issue with the x509 package that handles the parsing of the pem file. Please, post an issue there. I will close it here.