View Source Apple.AppStoreServerNotifications (apple v0.3.0)

Utilities for App Store Server Notifications.

Summary

Types

The verified content extracted from signed payload.

The root certificate that Apple offers on Apple PKI.

A cryptographically signed payload, in JSON Web Signature (JWS) format.

Types

@type payload() :: map()

The verified content extracted from signed payload.

@type root_cert() :: binary()

The root certificate that Apple offers on Apple PKI.

It's fine to use Apple Root CA - G3 Root.

@type signed_payload() :: String.t()

A cryptographically signed payload, in JSON Web Signature (JWS) format.

Functions

Link to this function

verify_signed_payload(root_cert, signed_payload)

View Source
@spec verify_signed_payload(root_cert(), signed_payload()) ::
  {:ok, payload()}
  | {:error, :invalid_format | :invalid_cert_chain | :invalid_signature}

Verifies a signed payload.

References