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.
echo $ssh->exec('sudo certbot certonly --manual --preferred-challenges=dns --agree-tos --email email@example.com -d *.dcommerce.store');
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
What am I doing wrong here?