Way to cache SSL-certificate and not reissue it every reload (Docker)

As I see, a server asks for a new certificate every Caddy reload (certainly when I use a Docker container and reload it). At the end you get the error “too many certificates already issued for exact set of domains”.
I know, that for a staging and development purpose you can use this config: acme_ca "https://acme-staging-v02.api.letsencrypt.org/directory". But sometimes I have many changing in production server and I can’t use this solution.
Is here the way how to cache a certificate and not reissue it every Docker container reload?

Yes, persist the /data volume. It’s explained in the docs on Docker Hub: Docker Hub

1 Like

:man_facepalming:
Thank you very much!

1 Like

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