Following situation: I have a server and a webspace from my hoster. The webspace does not allow to auto-create certs for subdomains, so I have to use my server for that by using the command:
./certbot-auto certonly -a manual --rsa-key-size 4096
This works fine, but I have a lot of subdomains, so I want to automate parts of it.
Once every three month I want run a script which does following:
- Run the above command for all my domains
- Autoanswer the questions
- Upload the verification file (well-known/acme-challenge) automatically to the webspace via FTP (own FTP server settings and path for every domain)
- When finished, upload the cert files also via SFTP to my webspace, so I can use activate them manually in my webhosting panel (Parallels Panel)
- After that I will manually delete the certs files for security reason.
So my issue is, how can I create such a script? Is there already a solution like this?