Closed bsphere closed 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 '.')
it was a problem with the way I converted the .p12 key file to .pem
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 '.')