SSL Expired. Traefik does not load new certificates

Hello!

Our SSL certificate has expired but traefik does not recognise the new one.

[entryPoints.https.tls]
  [[entryPoints.https.tls.certificates]]
  certFile = "/cert/STAR_homecareheroes_com_au.cer"
  keyFile = "/cert/STAR_homecareheroes_com_au.key"

Is there a way to force traefik to load the new one?

I've touched the toml file to no avail.

Thanks for any help.

Hello,

the entrypoints are in the static configuration so you have to restart Traefik.

https://docs.traefik.io/v1.7/basics/#configuration


But you can use the "dynamic certificates":

  • remove the section tls.certificates from the entryPoints definition.
  • restart Traefik
  • add the following tls element (dynamic configuration)

after that you will no longer need to restart to update your certificates.

https://docs.traefik.io/v1.7/configuration/backends/file/

[[tls]]
  entryPoints = ["https"]
  [tls.certificate]
    certFile = "/cert/STAR_homecareheroes_com_au.cer"
    keyFile = "/cert/STAR_homecareheroes_com_au.key"