Caddy 2 support Letsencrypt staging SSL certs?

Hello,

I’m using Caddy 2.0 and I cannot find the -ca command line option from Caddy 1.

How can I use the staging directory from Letsencrypt for SSL certs?

Thanks,
Ludovic

Welcome Ludovic –

If you are using JSON, specify the CA in the relevant automation policy/policies: Modules - Caddy Documentation

If using the Caddyfile, you can use the acme_ca global option to change the CA for all sites: Global options (Caddyfile) — Caddy Documentation - or you can use the tls directive to change it on a per-site basis.

2 Likes

Thanks @matt, I added the acme_ca directive at the start of my Caddyfile and can now use the staging certificates from Letsencrypt while it recovers from my too many requests for certificates. I forgot to persist the /data directory in the Docker image.

{
    acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
}
# rest of the config
3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.