阡陌 发表于 2023-12-29 00:55:19

使用 Certbot 获取 Let’s Encrypt 证书


## Let’s Encrypt

[https://letsencrypt.org/](https://letsencrypt.org/)

Let’s Encrypt is a free, automated, and open Certificate Authority.

## Certbot

Automatically enable HTTPS on your website with EFF's Certbot, deploying Let's Encrypt certificates.

Install:

On Ubuntu systems, the Certbot team maintains a PPA. Once you add it to your list of repositories all you'll need to do is apt-get the following packages.

```
$ sudo apt-get update

$ sudo apt-get install software-properties-common

$ sudo add-apt-repository ppa:certbot/certbot

$ sudo apt-get update

$ sudo apt-get install python-certbot-nginx

$ sudo certbot --nginx

$ sudo certbot renew --dry-run #自动更新
```

执行该命令会创建系统级 cron 任务:/etc/cron.d/certbot,会每天检查两次。


页: [1]
查看完整版本: 使用 Certbot 获取 Let’s Encrypt 证书