I'm pretty new to certificates, so hopefully someone can guide me. From my company, I made a certificate signing request. I received two certificates: my certificate signed by my company and an intermediate certificate. I placed both certificates and key in the directory defined in my static configuration and tried several dynamic configurations (one attempt is as follows):
tls:
stores:
default:
defaultCertificate:
- certFile: /etc/traefik/certs/mydomain.com.cer
certFile: /etc/traefik/certs/PBACA-G2.cer
keyFile: /etc/traefik/certs/mydomain.key
certificates:
- certFile: /etc/traefik/certs/mydomain.com.cer
certFile: /etc/traefik/certs/PBACA-G2.cer
keyFile: /etc/traefik/certs/mydomain.key
stores:
- default
However, the response from any reverse-proxy services return the insecure message from the browser. This message in the log suggests that the file is not set correctly.
time="2022-09-29T15:53:01-04:00" level=debug msg="No default certificate, generating one" tlsStoreName=default
Can someone provide an example dynamic configuration file that is appropriate for intermediate certificates? Any help is greatly appreciated.