Constructs PKCS#7 SignedData structures for Apple Wallet pass signing.
Uses only Erlang/OTP's :public_key and :crypto — no external dependencies.
Summary
Functions
Signs data and produces a DER-encoded PKCS#7 SignedData structure.
Functions
Signs data and produces a DER-encoded PKCS#7 SignedData structure.
data— the binary content to sign (manifest JSON for Apple Wallet)cert_pem— PEM-encoded signer certificatekey_pem— PEM-encoded private key for the signerextra_certs_pem— PEM-encoded additional certificates (e.g., WWDR)
Returns {:ok, der_binary} or {:error, reason}.