Rust + Rocket + Let's Encrypt 建立个人技术分享网站
2025-11-06 16:41:40
记录一些操作命令
# 安装Rust+Rocket
略
# 使用 Let's Encrypt 生成证书
```bash
# install
sudo apt install certbot
# 生成证书, 中间会填写邮箱以及两次Y
sudo certbot certonly --standalone -d yourdomain -d www.yourdomain
# 为证书添加访问权限
sudo chmod 755 /etc/letsencrypt/{live,archive}
sudo chmod 644 /etc/letsencrypt/live/yourdomain/*
```
> 未完待续