📜  如何将 ssl 添加到 nginx 中的子域 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:35.591000             🧑  作者: Mango

代码示例1
$ sudo apt install -y certbot

# stop nginx service, this is a must
$ sudo systemctl stop nginx

# generate an ssl certificate
$ sudo certbot certonly -d shop.example.com -d dashboard.example.com