Errors¶
lacme.errors ¶
ACME error types and server error factory.
Maps RFC 8555 Section 6.7 error URNs to typed Python exceptions.
Server responses with application/problem+json bodies are parsed
into the appropriate exception subclass via :func:server_error_from_response.
ACMEConnectionError ¶
ACMEError ¶
Bases: Exception
Base exception for all lacme errors.
ACMEValidationError ¶
AccountDoesNotExistError ¶
AlreadyRevokedError ¶
BadCSRError ¶
BadNonceError ¶
BadPublicKeyError ¶
BadRevocationReasonError ¶
BadSignatureAlgorithmError ¶
CAAError ¶
CertificateAuthorityError ¶
Bases: ACMEError
Error in CA operations (e.g., signing before init, invalid CSR).
CompoundError ¶
DNSError ¶
ExternalAccountRequiredError ¶
IncorrectResponseError ¶
InvalidContactError ¶
MalformedError ¶
OrderNotReadyError ¶
RateLimitedError ¶
Bases: ACMEServerError
urn:ietf:params:acme:error:rateLimited
retry_after
property
¶
Seconds to wait before retrying, parsed from the Retry-After header.
RejectedIdentifierError ¶
ServerInternalError ¶
TLSError ¶
UnauthorizedError ¶
UnsupportedContactError ¶
UnsupportedIdentifierError ¶
UserActionRequiredError ¶
server_error_from_response ¶
server_error_from_response(problem: dict[str, Any], response_headers: dict[str, str] | None = None) -> ACMEServerError
Create the appropriate :class:ACMEServerError subclass from a problem document.
Strips the urn:ietf:params:acme:error: prefix, looks up the short name
in the registry, and falls back to :class:ACMEServerError for unknown types.