aws / aws/aws-js-sns-message-validator
Error: the message signature is invalid
- Dominant language
- JavaScript
- Stars
- 74
- Forks
- 38
- PR merge metrics
- No merged PRs in 30d
Description
I'm getting "Error: the message signature is invalid" when I run this. I've used console.log to confirm several of the required components (certificate, signature) as well as confirm logical mechanics (missing keys, cert URL inaccessible). Everything seems to be checking out, yet it's coming back each time indicating invalid.
I've also tried access the message object at various places, from index.js and from the dependent node packages, to ensure everything is being passed around and everything looks good. I'm parsing the initial message string into a parsed JS object, and passing that to the MessageValidator constructor.
Any thoughts would be great. I'm using the latest version, 0.3.4.
For reference, a snapshot of the base project index.js which is attempting to kick this off, just in case I've done something wrong here.

Contributor guide
Research direction
Start with the reported index.js entry point and the MessageValidator constructor, tracing how the parsed message object, certificate, and signature are passed into validation. Reproduce the error with version 0.3.4 and use the reported inputs to isolate the cause; done means identifying a reproducible cause or confirming the validator behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, javascript, node.js
- Domain
- backend, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100