## 3. Caddy version:
v2.7.4
## 4. How I installed and ran Caddy:
https://ports.macports.org/port/caddy/
## a. System environment:
<!-- OS, architecture, relevant versions, systemd? Docker? etc. -->
MacOS Catalina on 2012 i7 Mac Mini
## b. Command:
This all just means that Caddy doesn’t have permission to access these files. That’s something you’ll need to adjust on your system somehow (better to ask a Mac forum that probably).
It’s hard to say since I don’t think your post is formatted properly and it’s missing information and it’s hard to read. Please correct the formatting so we can make sense of it.
Now throwing continual errors about trying to reach certificate issuer, however I have a commercial certificate from GoDaddy, how do I stop these errors?
{identifier: tls, issuer: acme-v02.api.letsencrypt.org-directory, error: HTTP 400 urn:ietf:params:acme:error:rejectedIdentifier - Error creating new order :: Cannot issue for \tls: Domain name needs at least one dot}
The formatting is still messed up, and I think only part of your config file is there. It’s hard to know for sure what the real situation is with bad formatting + partial config file.
That said, we are very impressed that you posted your logs as a table. That is surprisingly helpful for readability.
I think you might be confused about how to structure your Caddyfile. You must have a site address as the first thing in your config.
Your formatting is still messed up. Please make sure your config/logs are within code blocks, i.e. starting and ending with ``` on each their own lines.
Sorry I don’t know why formatting is messed up, I have hash hash at beginning of lines and they are not formatting as headings, and I have ``` between code blocks, no idea why that isn’t working.
Thanks, I have added the site address at the beginning of my caddyfile and fixed the directory privileges where caddy was trying to write, and the error messages have stopped. Caddy is now hosting securely again. My revised caddy file is: