We are providing some cloud services, where we deploy servers for our clients remotely. We also provide temporary domains to our clients for initial usage, for e.g. something.example.com
Now when client add their own domain name for e.g. something.xyz.com , we want to provide lets encrypt wild card ssl's for their own domains > ( something.xyz.com ),
we are using shell scripts remotely on client's servers to generate these wild card lets encrypt ssl.
one method is I am aware of that we can generate ssl using cert-bot command where it gives us a random value and we have to create the TXT record inside DNS and add that random value, but in my scenario i can't get that random VALUE , because we are running remote shell scripts and it can't provide us that random value. i want to automate this thing. For standard SSL we are using certbot to genrate ssl, please let me know the best solution for my scenario.
I don't really follow. Why wouldn't the TXT value be of any use in your shell script? You shouldn't want to do this manually, as @9peppe already mentioned.
Hey @9peppe , thanks for quick reply, Actually clients can add multiple domains for their website that is why we are generating wildcard ssl for them, but this process needs to be automated.
and i also saw a CNAME method on lets-encrypt's official documentation , will that help me to achieve my goal ?
@9peppe
Actually we don't want to create ssl again and again, just create a wildcard ssl and then client can add multiple domain, through our application.
FYI : - we have a application for all this , in which clients perform their activities like managing server, restarting services etc,
We want to automate this process of generating wildcard ssl.
how to Add a CNAME record as _acme-challenge and point it to one of the already added domain on that server ?
i think in this blog they are suggesting the same way
@amit_942
At first glance, wild card certs may seem simpler...
But they add a great deal of complexity to the problem.
In your scenario, I would seriously look at NOT using wild cards (unless absolutely necessary).