#[non_exhaustive]pub enum Error {
UnsupportedCertVersion,
UnsupportedSignatureAlgorithm,
UnsupportedSignatureAlgorithmForPublicKey,
InvalidSignatureForPublicKey,
SignatureAlgorithmMismatch,
BadDER,
BadDERTime,
CertNotValidYet,
CertExpired,
InvalidCertValidity,
UnknownIssuer,
}webpki only.Expand description
Errors that can be produced when parsing a certificate or validating a signature.
More errors may be added in the future.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnsupportedCertVersion
Version is not valid. Without the legacy-certificates feature, only
X.509 v3 certificates are supported. If the legacy-certificates
feature is enabled, v1 and v2 certificates are also supported.
UnsupportedSignatureAlgorithm
Signature algorithm unsupported
UnsupportedSignatureAlgorithmForPublicKey
Signature algorithm isn’t valid for the public key
InvalidSignatureForPublicKey
Signature forged!
SignatureAlgorithmMismatch
Signature algorithms don’t match
BadDER
Invalid DER. This will also result if the legacy-certificates feature
is disabled, but one of the (obsolete and virtually unused)
subjectUniqueId and issuerUniqueId fields are present. Even if the
legacy-certificates feature is enabled, these fields will not
appear in the parsed certificate.
BadDERTime
Invalid DER time
CertNotValidYet
Certificate isn’t valid yet
CertExpired
Certificate has expired
InvalidCertValidity
Certificate expired before beginning to be valid
UnknownIssuer
The issuer is not known.