1. The problem I’m having:
Hi, I want to use my ACME server to generate certificates for my sites which pass through my reverse proxy Caddy, however I would like to check that the renewal works well so I would like to renew the certificate every 10 minutes to see if when it has expired, it is well renewed without me doing anything
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
2. Caddy version:
2.7.4
3. How I installed and ran Caddy:
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddy
a. System environment:
Debian 11
b. Command:
Systemctl start/stop/restart caddy
c. Service/unit/compose file:
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
d. My complete Caddy config:
{
email admin@mydooomain.fr
acme_ca https://my-acme-server.mydooomain.local/acme/acme/directory
acme_ca_root /etc/caddy/ssl/root.crt
}
my-test-site.dooomain.local {
tls {
ca https://my-acme-server.mydooomain.local/acme/acme/directory
}
reverse_proxy my-machine-test.mydooomain.local
}
After a restart of caddy and a check of certificate of https://my-test-site.dooomain.local, the certificate didn’t change, it was the same that before with a duration of 1yo.
5. Links to relevant resources:
I also tried this configuration but nothing different
{
email admin@mydooomain.fr
acme_ca https://my-acme-server.mydooomain.local/acme/acme/directory
acme_ca_root /etc/caddy/ssl/root.crt
renew_interval 10m
}
acme_server https://my-acme-server.mydooomain.local/acme/acme/directory {
lifetime 12h
}
But same result. Thank you in advance for your help !