square/js-jose

JWS signature always invalid when verified using 3rd party tools

mxie1563 opened this issue · 1 comments

Used the example file "jose-jws-rsa-example.html" to generate the result, then put the various parts into a compact string format as header.payload.signature, and paste it to 3rd party tools such as jwt.io. The signature is always invalid.

Found out that I should use the function of CompactSerialize(), after sign, to obtain the string of message.CompactSerialize().