I am new to Caddy, but already loving it. I am building an application where every user gets their own subdomain name. ex: user1.mydomain.com, user2.mydomain.com etc… And every user also gets to point their own domain names through a cname record. ex: www.customdomain.com points to user1.mydomain.com
I need caddy to auto-generate SSL certificates dynamically for all the subdomains created, and the custom domains of my users who configure via cname records to my server.
I tried a couple of things from couple of posts but nothing seems to work. Hence requesting the community to help me with the right caddy file to achieve it
I am using Route 53 as my DNS provider for my domain
I’m running into this same issue. We want to be able to dynamically provision certificates for any custom domain that is CNAME’d to us. I seem to recall this working last year when I was prototyping Caddy v1.
The “ask” stuff at the top is how on-demand TLS authorizes the issuance of a cert for that hostname. Ideally you have some backend that can make sure the issuance is allowed. Docs have details.