Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 ?

like image 361
Laimonas Sutkus Avatar asked Mar 08 '18 12:03

Laimonas Sutkus


People also ask

Does Certbot need to run as root?

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.

Does Certbot use letsencrypt?

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.


1 Answers

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

like image 63
match Avatar answered Sep 28 '22 03:09

match