Automatically generate full chain certificate file from CA

You can use GitHub - mholt/caddy-events-exec: Run commands on Caddy events to configure the cert_obtained event to copy the certificate and combine them yourself with a shell script immediately after it’s renewed. You’ll probably need to use v2.7.0-beta.2 to get the latest updates to the event payload. See https://github.com/caddyserver/certmagic/blob/25bb2afb2c082163ecc46a72df23b703c56fb5ef/config.go#L615 for the payload data, can be used in the command string with {event.data.storage_path} for example.

3 Likes