Wildcard certificates require the DNS challenge, as stated in “Wildcard certificates” in Automatic HTTPS — Caddy Documentation and other places, including the wiki/guide, which is the topic you originally posted your post and @matt recommended you read in Caddy initial config question - #6 by matt