View Source Apple.Signed (apple v0.4.0)
Utilities for handling signed payload.
Summary
Types
The verified payload extracted from signed payload.
The root certificate that Apple offers on Apple PKI.
A cryptographically signed payload, in JSON Web Signature (JWS) format.
Functions
Verifies a signed payload.
Types
@type payload() :: map()
The verified payload 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
@spec verify(root_cert(), signed_payload()) :: {:ok, payload()} | {:error, :invalid_format | :invalid_cert_chain | :invalid_signature}
Verifies a signed payload.
Signed payloads are used in the responses of: