>

Installation

(1) CentOS

1
2
3
4
5
wget https://dl.eff.org/certbot-auto
sudo mv certbot-auto /usr/local/bin/certbot-auto
sudo chown root /usr/local/bin/certbot-auto
sudo chmod 0755 /usr/local/bin/certbot-auto
/usr/local/bin/certbot-auto --help

(2) Ubuntu

1
2
3
4
5
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install certbot
certbot --version

There are mainly three ways to generate a certificate for you web site using certbot.
Below are examples to show how to generate the certificates non-interactively.

1. standalone

Generating a standalone certificate.

1
certbot certonly --standalone -n --agree-tos --email you@gmail.com --preferred-challenges http -d you.domain.com

2. nginx/apache…

Generating the certificate for the specific web server.

1
certbot certonly --nginx -n --agree-tos --email you@gmail.com --preferred-challenges http -d you.domain.com

3. webroot

Generating the certificate by specifying the root directory of the website with --webroot option.

1
2
```shell
certbot certonly --webroot --agree-tos --no-eff-email --email xxxgmail.com --preferred-challenges http -w /var/www/html -d you.domain.net

4. manual

This is a manual way, which means interactively, to generate the certificate.

1
certbot certonly --manual -d you.domain.com