pub enum AcmeError {
Show 16 variants
Acme(AcmeErrorDocument),
HttpRequest(Error),
JsonDeserialize(Error),
JsonSerialize(Error),
PemDecodeError(Error),
DerDecodeError(Error),
Utf8Error(Utf8Error),
InvalidNonce(Option<HeaderValue>),
MissingNonce,
NonceRequest(Error),
Signing(Report),
MissingData(&'static str),
MissingKey(&'static str),
NotReady(&'static str),
UnknownChallenge(String),
AuthorizationError(String),
}Expand description
Unified error type for errors arising from the ACME protocol.
Variants§
Acme(AcmeErrorDocument)
The ACME provider returned an error, see AcmeErrorDocument.
HttpRequest(Error)
The reqwest library encountered an error while fulfilling the HTTP
request, and the ACME provider did not provide a corresponding error document.
JsonDeserialize(Error)
An error was encountered while trying to deserialize the JSON payload of the response.
JsonSerialize(Error)
An error was encountered while trying to serialize the JSON payload of the request.
PemDecodeError(Error)
An error occured while trying decode a PEM binary in a response.
DerDecodeError(Error)
An error occured while trying decode a DER binary in a response.
Utf8Error(Utf8Error)
The ACME Client encountered non utf-8 data in a response.
InvalidNonce(Option<HeaderValue>)
The ACME provider indicated that an invalid nonce was used.
MissingNonce
The ACME provider did not provide a nonce. This is a bug in the provider’s adherence to RFC 8885.
NonceRequest(Error)
The reqwest library encountered an error while making an additional HTTP
request to get a new nonce, and the ACME provider did not provide a corresponding error document.
Signing(Report)
The signing algorithm encountered an error.
MissingData(&'static str)
Some data was missing from an input.
MissingKey(&'static str)
A signing key was not provided (e.g. for finalizing an order, or creating an account).
NotReady(&'static str)
The ACME provider indicated that a resource is not ready. This usually indicates that an error occured during e.g. validation, or the prerequisites for waiting on some process from the ACME provider were not fulfilled.
UnknownChallenge(String)
The ACME challenge is not a known challenge type for YACME.
AuthorizationError(String)
The authorization object returned a status other than Valid, indicating that an authorization encountered an error or was not fulfilled.