I am trying to fully automate installation of the letsencrypt certificate using the following command:
certbot certonly --duplicate --nginx --preferred-challenges http -d $(domain_name) --register-unsafely-without-email --agree-tos --config-dir /etc/ssl/certs/ --cert-name certificate-folder
For the first time, I execute the command, ( where $(domain_name) is comma seperated value for domains) it workd without asking anything. Just fine.
But the second time I executed the command, it ask for
What would you like to do?
1: Keep the existing certificate for now
2: Renew & replace the cert (limit ~5 per 7 days)
Select the appropriate number [1-2] then [enter] (press 'c' to cancel):
I search the documentation but couldn't find approprate flage or option to chose number 1 or 2.
Is there any flag to accept number 1 ?