auth0 / node-jws

JSON Web Signatures
http://self-issued.info/docs/draft-ietf-jose-json-web-signature.html
MIT License
706 stars 106 forks source link

siginging with RSA256 result in empty signature #1

Closed bsphere closed 11 years ago

bsphere commented 11 years ago

I'm trying to sign with RSA256 with the following:

var jws = require('jws'); var o = jws.sign({ header: {alg: 'RS256', typ: 'JWT'}, payload: payload, secret: key });

console.log(o);

the result signature is empty (only header and payload segments, and the token ends with a '.')

bsphere commented 11 years ago

it was a problem with the way I converted the .p12 key file to .pem