Adding a certificate to subdomains

essai.website
kansas.essai.website

Centos 7 - nginx
Installed a certificate for the primary domain.
I have 50 subdomains for each region.
Command: sudo certbot --nginx -d www.kansas.essai.website -d kansas.essai.website, allows you to add one subdomain each!
How to automate the process of adding subdomains or simplify?

1 Like

:wave: Hi @vovckalexei,

Do you use some kind of configuration management software like Ansible? What programming languages are you familiar with?

I personally think that Certbot isn’t the best choice for large scale integrations that require more complicated automatic on/offboarding and policy controls. In my books you might be better in this situation to use an ACME client library in your programming language of choice and building the automation with the library instead of a fully-fledged independent executable.

1 Like