I am implementing In App Purchase and integrating App Store Server Notifications version 2.
I am able to receive the JWSSignedPayload from Apple. The payload is Base64 encoded and contains header, payload, and signature. The documentation clearly explains how to decode the payload and extract claims such as notificationType and data.
What is unclear is how to verify the JWS signature itself.
I could not find concrete documentation that explains:
Which Apple public key or certificate should be used for verification
How to retrieve or rotate the key used to sign the payload
The exact steps required to validate the JWS signature before trusting the payload
Signature verification is critical for security, and simply decoding the claims without validation is not sufficient.
I am looking for official guidance or a recommended approach to verify the JWSSignedPayload signature for App Store Server Notifications v2.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
StoreKit
App Store Connect
In-App Purchase
App Store Server API