Caddy's way of using plugins seems to require building custom binaries, may I know if that's what you did?
I preferred to use wildcard certs, which requires a plugin for the dns