Still failing. I copied the root.crt and imported into Chrome but no change in behavior. I found the link confusing - acme_server is an invalid directive when I put it into my Caddyfile for lenovo {} as the server name. Also, for the root.crt, for my office, am I meant to share that with everyone? Is there a way to more easily scale this out to other users?
The acme_server directives turns Caddy into an ACME server for other ACME clients (such as other instances of Caddy) to use for getting certificates issued. If you’re just running a single instance of Caddy, you won’t need this.
There’s no unified way to automate installing root certificates on machines. If you’re using Active Directory and everyone’s on Windows machines, then you might be able to do it with some Group Policy stuff, but you’ll need to do your research on that topic.
Chrome tends to be a bit temperamental about caching TLS, so sometimes importing doesn’t fix it right away. Make sure you clear out any cache in Chrome.
Please use the caddy Docker image instead, caddy/caddy is not the official Docker library image, but is instead our CI target, so there’s a chance you get a broken build from there. Also, I strongly recommend pinning to a specific version by specifying a tag. See Docker
Same problem with the official image or building my own. I’ve got a DNS record working for a fqdn but cannot get the https://lenovo to work whatsoever. I copied the root certificate out and loaded into chrome but that made no difference