I have a web app where users can point their custom domain to their profiles. For that they point the dns of their custom domain to my server.
How do I issue a certificate to those who have mapped their domain to our server using DNS Cname Validation?
Is there any automated process to do so?
I am using an Apache Server Ubuntu (PHP)
TXT verification wouldn’t be possible if the users increase in future, so how to issue a certificate to every domain that points to my server?
You would put Caddy in front of Apache in a reverse-proxy arrangement. That’s the cost you would pay for having Caddy automate all of the HTTPS for you.
I’m not sure that thread has anything that will help you. You have already solved with the DNS part - your customers are using a CNAME to point their domains to your app.
What you are missing is the software which takes your (dynamic) list of your customer domains, creates certificates, deploys them to your webserver and manages their lifecycle. That’s going to require software development/scripting, one way or another. Moreover, it’s going to be slightly different for every webapp.
That’s why I suggested Caddy - although it is not perfect, it largely lets you avoid doing all that work.
Yeah, more and more companies are using Caddy to manage certs for their customer’s domains on-demand. It works really well and is getting even better with time.