Is it possible to pause Caddy from issuing or renewing certs?

Does anyone know if it’s possible to pause Caddy from issuing new or renewing certs, but still continuing to serve traffic on existing certs?

I issue certs using on_demand_tls and server traffic using reverse_proxy. Using caddy 2.4.6.

I’m currently working on a migration which involves switching Caddy to a new filesystem. I’d like to be able to perform the following steps;

  1. Pause the existing caddy install from issuing new or renewing certs
  2. Copy cert files across to the new system
  3. Point traffic to the new system
  4. Verify that new caddy system is serving traffic correctly
  5. Turn off old system
  6. Enable renewing / issuing new certs on the new system.

If not does, anyone have any ideas on how the migration might be performed with a minimal disruption? I have some ~200 certs so while I could just issue new certs on the new system and still be within rate limits but it doesn’t give me much room if I need to roll back.

Thanks in advance!

Caddy can operate as a cluster if you set up a filesystem share between the two systems for Caddy’s storage. That should be good enough to let you migrate while having both running. Some types of filesystem sharing has problems with consistency and atomicity which can screw up in certain situations, but you should probably be fine if you have relatively low issuance frequency for now.

1 Like

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