I'm using certbot
--webroot
plugin and certbot renew
to renew the certificate, which does work, but it looks like httpd
is caching the certificate and does not "see" that it's been updated.
Is there a signal for httpd
to reload the certificates?
p.s. I prefer not to restart httpd
to avoid downtime.
To get
httpd
to notice the new certificates you need to request that it do a "graceful restart". From the docs :As such a graceful restart won't cause downtime.
In order to get letsencrypt/certbot to trigger a graceful restart use the
--post-hook
argument. This argument will run a command once if any cert renewal was attempted. From the docs:So the command you would want is
or if run from a cron job
(Thanks to @RustyX for help with this answer)