pub enum Authority {
Root,
Intermediate,
}rustcrypto only.Expand description
Which kind of authority a CertAuthority is.
It decides one thing that matters: which DN attribute goes in the issuer of everything it
signs. §6.5.6.3 gives a root matter-rcac-id and an intermediate matter-icac-id, and
verify_chain compares subject.issuer to the issuer’s own
subject attribute for attribute — so getting this wrong produces a certificate that is
individually valid and chains to nothing.
Variants§
Root
A self-signed Root CA (§6.5.6.2), identified by matter-rcac-id.
Intermediate
An Intermediate CA (§6.5.6.2), identified by matter-icac-id.
§6.4.5.1 permits exactly one level — “an Intermediate Certificate Authority whose ICA
certificate is directly issued by such a Root CA” — so an intermediate may issue NOCs
and nothing else. CertAuthority::issue_icac and
CertAuthority::self_signed_root refuse on one.