I'm trying to set up a docker/traefik environment for local development with a self signed certificate which I created for a domain 'local.dev' like so:
The only reasonable template config I've found so far is from the last answer here - basically all other examples I've found use letsencrypt which is not an option on a local dev box.
No errors on container startup, but Firefox doesn't accept the certificate on https://local.dev (MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT) and doesn't give me the option to add an exception in the advanced dialog as it usually does with other self signed certs.
What seems strange is that the error message also says: "local.dev uses a security technology called "HTTP Strict Transport Security (HSTS)", through which Firefox is only allowed to connect to the website via secure connections. Therefore, an exception cannot be added for the website" - this kind of indicates, that although I'm calling it on https I get an insecure answer?
I've also explicitly added this URL as an exception in the certificate config, no change. And the same basically happens with Edge and Chrome.
What am I missing here? And has anybody a working configuration for using self signed certs in a local setup?
Meanwhile, and just to get nginx as complication out of the way, I also tried a config from the traefik.io blog by basically commenting out the letsencrypt related directives and pulling in my self signed certs and adding the following labels: