title: Let's Encrypt
category: Security
time: 1731249183799
---

# Certbot

## Install Certbot
```
wget -c https://dl.eff.org/certbot-auto ./certbot-auto
```

## Setup SSL Certificate

### Generate DHParams
```
openssl dhparam -out dhparam.pem 4096
```

### Request Certificate
```
./certbot certonly --webroot -w /var/www/html -d example.com -d www.example.com
```

### Setup Cron Job
```
24  15  *   *   2,5 /path/to/certbot/certbot-auto renew --quiet --no-self-upgrade && systemctl reload nginx
```

# acme.sh
