View Source Apple.Signed (apple v0.5.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

Link to this function

verify(root_cert, signed_payload)

View Source
@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:

References