Traefik default certificate

Hi - I stucked. When I do everything like in the traefik manual I receive an error "defaultCertificate cannot be a standalone element (type *tls.Certificate)"

tls:
  stores:
    default:
      defaultCertificate:
        certFile = /etc/certs/s.rush.net.crt
        keyFile  = /etc/certs/s.rush.net.key

Help :frowning:

1 Like

Hi @Kallikasa,

Thanks for your interest in Traefik!

There are typos in your defaultCertificate configuration (you have used = instead of :). The configuration should be:

tls:
  stores:
    default:
      defaultCertificate:
        certFile: /etc/certs/s.rush.net.crt
        keyFile: /etc/certs/s.rush.net.key
1 Like

thank you a lot. That was my problem! I checked a lot of TOML / YAML and lost format(

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.