I am writing a bash script which bootstraps the whole project infrastructure in the freshly installed server and i want to configure ssl installation with letcecrypt certbot. After I execute line:
certbot --nginx -d $( get_server_name ) -d www.$( get_server_name ).com
I get prompted for few questions. Can certbot be run without any interactions while passing some of the params as arguments or something ?
Certbot's Apache and Nginx plugins normally require root both for making temporary and persistent changes to webserver configurations, and to perform graceful reload events for those servers.
The most popular Let's Encrypt client is EFF's Certbot. Certbot offers a variety of ways to validate your domain, fetch certificates, and automatically configure Apache and Nginx.
You can run certbot 'silently' by adding the following options:
--non-interactive --agree-tos -m [email protected]
The full list of config options is available here:
https://certbot.eff.org/docs/using.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With