Exceptions
aia_chaser.exceptions
¶
AiaChaseExhaustedError
¶
Bases: AiaChaserError
Failed to retrieve the issuing CA after exhausting all AIA URLs.
| PARAMETER | DESCRIPTION |
|---|---|
errors
|
A collection of errors encountered while attempting to fetch the CA.
TYPE:
|
| ATTRIBUTE | DESCRIPTION |
|---|---|
errors |
A collection of errors encountered while attempting to fetch the CA.
|
AiaChaserError
¶
Bases: Exception
Base exception for aia_chaser errors.
AiaChaserWarning
¶
Bases: UserWarning
Base warning for aia_chaser warnings.
CertificateChainError
¶
CertificateDownloadError
¶
CertificateExpiredError
¶
Bases: CertificateVerificationError
Certificate outside its validity period.
| PARAMETER | DESCRIPTION |
|---|---|
not_valid_before
|
Certificate is not valid before this time.
TYPE:
|
not_valid_after
|
Certificate is not valid after this time.
TYPE:
|
verification_time
|
When the certificate was validated and validation failed because it’s outside the validity period.
TYPE:
|
CertificateFingerprintError
¶
CertificateIssuerNameError
¶
Bases: CertificateVerificationError
Certificate issuer name does not match issuer’s subject.
| PARAMETER | DESCRIPTION |
|---|---|
cert_issuer
|
Certificate’s issuer subject.
TYPE:
|
issuer_subject
|
Issuer’s subject.
TYPE:
|
CertificateIssuerNotTrustedError
¶
CertificateKeyTypeError
¶
Bases: CertificateVerificationError
Unsupported key type used to sign a certificate.
| PARAMETER | DESCRIPTION |
|---|---|
reason
|
Message explaining the cause of the error.
TYPE:
|
CertificateParseError
¶
CertificateSignatureError
¶
Bases: CertificateVerificationError
Issuer’s certificate did not sign the certificate.
| PARAMETER | DESCRIPTION |
|---|---|
certificate
|
Certificate whose signature is being validated.
TYPE:
|
issuer
|
Certificate that should have signed the
TYPE:
|
CertificateTimeZoneError
¶
CertificateVerificationError
¶
Bases: AiaChaserError
Base exception for certificate verification errors.
CrlError
¶
Bases: CertificateVerificationError
Base exception for CRL errors.
CrlHttpError
¶
Bases: CrlError
CRL failed due to an HTTP protocol error.
| PARAMETER | DESCRIPTION |
|---|---|
crl_url
|
CRL endpoint url.
TYPE:
|
http_status
|
HTTP status indicating the type of error.
TYPE:
|
MissingPeerCertificateError
¶
NoValidAiaCaUrlError
¶
Bases: AiaChaserError
None of the AIA CA URLs is a valid http or https URL.
| PARAMETER | DESCRIPTION |
|---|---|
urls
|
URLs that were provided to fetch the CA.
TYPE:
|
OcspError
¶
Bases: CertificateVerificationError
Base exception for OCSP errors.
OcspHttpError
¶
Bases: OcspError
OCSP failed due to an HTTP protocol error.
| PARAMETER | DESCRIPTION |
|---|---|
ocsp_url
|
OCSP endpoint url.
TYPE:
|
http_status
|
HTTP status indicating the type of error.
TYPE:
|
OcspResponderCertificateError
¶
OcspResponseStatusError
¶
Bases: OcspError
OCSP response status is not successful.
| PARAMETER | DESCRIPTION |
|---|---|
status
|
OCSP response status.
TYPE:
|
OcspRevokedStatusError
¶
OcspUnknownStatusError
¶
RootCertificateNotFoundError
¶
Bases: CertificateVerificationError
Root certificate not in trusted database.
| PARAMETER | DESCRIPTION |
|---|---|
subject
|
Subject of the certificate not found among the trusted certificates.
TYPE:
|