So for development each time the docker container is restarted a new certificate is generated. Is it possible to add the path it stores certs to as a volume or is more configuration needed?
I just want to stop having to re-accept self signed certificates each time I restart Traefik 2?
1 Like
Dear John, welcome to the Traefik community.
How did you deploy Traefik?
Regards,
Wolfgang
If you use Docker, just set acme.storage to a dedicated path (for example /acme.json
) and use a Docker volume or a Docker bind mount for it.
For current setup for local development I'm using docker compose. Eventually plan on using let's encrypt likely with DNS verification. What I'm trying to solve is having to re-accept the invalid local self signed certificate every-time I reboot the proxy.
Basically just wanted to volumize the default certificate it generates.
1 Like
Hello, did you find any solutions about this?
Thanks!
Define the acme.json
location and place it in a volume or mounted folder.
Check simple Traefik example.
Hello. Thank you for your reply, but we want keep TRAEFIK generated self signed certificates, not ACME (lets encrypt) certificates.
Thanks!
I hope you have solved it by now.
You have to extract the information from the JSON.
There are a few ways.
1 Like