I'm trying to achieve the following:
- A user sends a LetsEncrypt verification request for their domain names via an API request.
- The API will run the command to get the TXT records for validations.
/usr/local/bin/certbot --debug --email email@example.com --no-eff-email --agree-tos certonly --no-redirect --keep --expand -d abc.ivfexplained.com.au -d xyz.ivfexplained.com.au --cert-name ivfexplained.com.au --preferred-challenges dns --manual
- The API will return the TXT records for the user to enter them.
- The API will send a LetsEncrypt to validate the domain and generate SSL certificate.
The problem is that the command (2) does not run interactively, every time it is entered a new TXT record is generated, and it always waits for user interaction "
Press Enter to Continue
Any ideas how to implement this solution?