I have script that upload to DirectAdmin using manual mode because my shared hosting don’t support lensencrypt out of the box (I also don’t have ssh and no root) and I wanted to automate the process of setting certificate.
I want my script to be universal so I thought that I write code that will set DNS challenge using DirectAdmin. The flow looks like this first I run certbot and then my script to POST the cert to DirectAdmin on my shared hosting server. But if DNS is not set, like when I want to add certificate for new domain or subdomain, the certbot will fail.
So my question is, can somehow get the challenges in a form of a text? Maybe run certbot in noninteractive mode, that will output challenges to set, without validating and generating Certificate. Is something like this exists.