I am trying to automate the process of generating an SSL for the domains getting registered on my platform. For this, I am trying to execute the commands from the browser using PHP by manually configuring the commands in the backend.
I have used the following command to generate a certificate.
The command gets executed properly but I want the process to be non-interactive as I am trying to pass all the parameters at one go so that certbot directly provides me with the TXT record.
I am generating the certificates on AWS Lightsail LAMPP Server
That's not true, unless the certbot devs have deleted the manual hooks.
Edit: according to the docs the options --manual-auth-hook and --manual-cleanup-hook still exist. With those, you can make the manual plugin work non-interactive.
I am trying to use the pre and post validation hook using the cloudfare api’s. I have generated two file i.e. authenticator.sh and cleanup.sh as instructed in the documentation. but i keep getting the error
Saving debug log to /var/log/letsencrypt/letsencrypt.log manual-auth-hook command /var/shell/authenticator.sh exists, but is not executable.
Offtopic: if you mean to tell "you're missing the necessary options to make it work", but you actually say "it's impossible", I'm not sure your intended message is received. Perhaps it's best just to tell people they're missing a required option.
i keep getting the following message even after following all the instructions.
The IP of this machine will be publicly logged as having requested this certificate. If you're running certbot in manual mode on a machine that is not your server, please ensure you're okay with that. Are you OK with your IP being logged? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (Y)es/(N)o:
If you are running this in a PTY via phpseclib or something (as in your original post), you should also include --non-interactive, so Certbot knows not to create any input prompts, and will either pick sensible defaults or immediately crash without waiting for input.
You can definitely combine --non-interactive and --manual.
Most likely you are missing some mandatory flags (such as the one a few posts back), and if you pay attention to the output of your execution, it will tell you which ones.