debian申请证书

安装 Certbot

直接在你的 root 终端中依次执行以下命令:

# 1. 更新软件源并安装 snapd
apt update && apt install snapd -y

# 2. 安装并更新 snap 核心
snap install core; snap refresh core

# 3. 通过 snap 安装 certbot
snap install --classic certbot

# 4. 创建软链接,确保全局可以直接调用 certbot 命令
ln -s /snap/bin/certbot /usr/bin/certbot

申请证书命令

certbot certonly --standalone -d justgkr.wwwq.net