pub enum KeyUsage {
Show 15 variants
DigitalSignature,
NonRepudiation,
KeyEncipherment,
DataEncipherment,
KeyAgreement,
KeyCertSign,
CRLSigning,
EncipherOnly,
DecipherOnly,
ServerAuthentication,
ClientAuthentication,
CodeSigning,
EmailProtection,
Timestamping,
OCSPSigning,
}
Expand description
The usages of a key contained within a certificate.
Variants§
DigitalSignature
Verifies digital signatures, other than signatures on certificates and CRLs.
NonRepudiation
Verifies digital signatures, other than signatures on certificates and CRLs, and provides a non-repudiation service that protects against the signing entity falsely denying some action.
KeyEncipherment
Enciphers private or secret keys.
DataEncipherment
Directly enciphers raw user data without an intermediate symmetric cipher.
KeyAgreement
Key agreement.
KeyCertSign
Verifies signatures on public key certificates.
CRLSigning
Verifies signatures on certificate revocation lists (CRLs).
EncipherOnly
Enciphers data while performing a key agreement.
DecipherOnly
Deciphers data while performing a key agreement.
ServerAuthentication
TLS WWW server authentication.
ClientAuthentication
TLS WWW client authentication.
CodeSigning
Signs downloadable executable code.
EmailProtection
Email protection.
Timestamping
Binds the hash of an object to a time.
OCSPSigning
Signs OCSP responses.