Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 651 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 651 Bytes

在腾讯云上使用 Let's Encrypt 证书

腾讯云并不支持自动签发 Let's Encrypt 证书,而手动上传证书并在 CDN 中启用会相当麻烦,这个脚本用于自动部署已签发 / 续期的证书到腾讯云证书管理并部署到腾讯云 CDN

用法

  1. composer install
  2. config.example.php 复制为 config.php,根据提示完成相关配置
  3. acme.sh 为例,在 ~/.acme.sh/[main domain]/[main domain].conf 中配置 Le_RenewHook 字段,以下为示例
php ~/qcloud-lets-encrypt/index.php\
 --cert $CERT_FULLCHAIN_PATH\
 --key $CERT_KEY_PATH