Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/acme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use anyhow::{Context, anyhow};
use axum::{Router, extract::Path, routing::get};
use instant_acme::{
Account, AccountCredentials, ChallengeType, Identifier, LetsEncrypt, NewAccount, NewOrder,
RetryPolicy,
OrderStatus, RetryPolicy,
};
use serde::Deserialize;
use tokio::{
Expand Down Expand Up @@ -291,6 +291,13 @@ pub async fn run_acme_http01(
}

let status = validation_result?;
if status == OrderStatus::Invalid {
return Err(anyhow!(
"Domain validation failed. The ACME server could not verify ownership of '{domain}'. \
Common causes: DNS not pointing to this server, a firewall blocking port 80, \
or the wrong domain name was used. Please fix the issue and try again."
));
}
info!("Domain validation complete, order status: {status:?}");

// Domain validated; finalizing order and retrieving the certificate.
Expand Down
Loading