7.8 Bundles
A bundle is what a file carries: a leaf, and as much of the leaf's chain as the signer chose to include.
| Field | Type | Description |
|---|---|---|
| header | 6 bytes | kind is 0x03 (§7.4) |
cert_count | u8 | The number of certificates, from 0 through 17 |
leaf_len | u16 | Length of leaf |
leaf | u8[leaf_len] | A leaf (§7.7) |
| certificates | Variable | cert_count entries, each a u16 length and a certificate (§7.6) |
A bundle is not signed. Every object in it is.
7.8.1 Order #
The first certificate is the one the leaf's issuer names. Each later
certificate is the one the certificate before it names. A top-level, if
the bundle carries one, is the last certificate. A bundle that breaks
this order is malformed.
7.8.2 Stopping short #
A bundle need not carry the whole chain. Where it stops, the issuer
field of its last object names the next certificate, and a verifier
finds that certificate as §7.11 describes.
A signer chooses between two things:
- A short bundle. Each file carries its leaf and perhaps its signing certificate. The certificates further up are installed once and found by hash. A deep chain then costs each file nothing.
- A complete bundle. The file verifies with nothing else present, at a cost of about 5.3 KiB for each certificate.
A bundle MAY carry its top-level. A carried top-level is used to verify the chain, and it is never enabled by being carried: only the trust store enables a top-level (§7.10).
7.8.3 Size #
A bundle MUST NOT exceed 65,536 bytes. A verifier MUST report a larger bundle as invalid, whatever the depth of its chain.