Skip to content

Plesk 部署

适合使用 Plesk 管理网站的服务器。

方式 A:Plesk 支持自定义 ACME

如果 Plesk 的 SSL/TLS 工具支持自定义 ACME,请填写:

  • Server URL
  • EAB MAC ID
  • EAB MAC key

保存后为域名签发证书,并启用 HTTPS。

方式 B:SSH + acme.sh

1. 设置变量

bash
export DOMAIN="example.com"
export EMAIL="[email protected]"
export WEBROOT="/var/www/vhosts/example.com/httpdocs"
export ACME_SERVER="你的 Server URL"
export EAB_KID="你的 EAB MAC ID"
export EAB_HMAC_KEY="你的 EAB MAC key"

2. 安装并注册

bash
curl https://get.acme.sh | sh -s email="$EMAIL"

~/.acme.sh/acme.sh --register-account \
  --server "$ACME_SERVER" \
  --eab-kid "$EAB_KID" \
  --eab-hmac-key "$EAB_HMAC_KEY" \
  -m "$EMAIL"

3. 签发证书

bash
~/.acme.sh/acme.sh --issue \
  --server "$ACME_SERVER" \
  -d "$DOMAIN" \
  -w "$WEBROOT"

4. 在 Plesk 安装

进入:

text
Websites & Domains -> example.com -> SSL/TLS Certificates

上传证书和私钥,并为域名启用 HTTPS。

完成后访问:

text
https://example.com

Released under internal 12SSL documentation guidelines.