7.6 Certificates

A certificate binds a key to a name and a set of warrants. Top-levels and intermediaries share one layout.

FieldTypeDescription
header6 byteskind is 0x01 (§7.4)
roleu80x01 for a top-level, 0x02 for an intermediary
issueru8[64]The issuer (§7.3)
name_lenu8Length of name, from 1 through 255
nameu8[name_len]The subject's name
key_typeu8The type of key (§7.4)
keyBy key_typeThe subject's public key
warrant_countu8The number of warrants
warrantsVariableThat many warrants (§7.5)
signatureBy the issuer's key typeSignature over every preceding byte

The role enumeration is closed (§7.15).

7.6.1 Name #

A certificate's name describes its holder to a person, as Example Corporation Signing 1. It holds bytes in the range 0x20 through 0x7E. No rule of this chapter compares it with anything, and a consumer MUST NOT make a decision on it.

7.6.2 Issuer and signature #

For an intermediary, issuer is the object hash of the issuing certificate, and the signature verifies under that certificate's key.

For a top-level, issuer is one of two things:

  • The key hash of a root. The signature verifies under that root.
  • The key hash of the certificate's own key. The certificate is self-signed, and the signature verifies under its own key.

A top-level whose issuer is neither a root the verifier holds nor its own key hash was signed by a key the verifier does not have. A verifier cannot check that signature, and treats the certificate as §7.14 describes.

Edit this page