How to install Certbot (Let's Encrypt) without interaction?

Laimonas Sutkus picture Laimonas Sutkus · Mar 8, 2018 · Viewed 12.3k times · Source

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 ?

Answer

match picture match · Mar 8, 2018

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