Skip to content
This repository was archived by the owner on Mar 22, 2025. It is now read-only.

腾讯云自动上传本地证书并部署至 CDN 脚本

Notifications You must be signed in to change notification settings

Pigeon-Server/qcloud_cdn_upload_ssl_cert

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

腾讯云证书自动上传 & CDN 部署

鉴于腾讯云不再提供一年证书,而三个月有效期又需要频繁手动更新过于麻烦,腾讯云也不提供自动更新证书

所以写了个脚本,可以自动将本地 ACME 证书上传至腾讯云,并且部署至 CDN

使用方法

重命名:config.json.example -> config.json

{
  // 腾讯云API ID与KEY
  "TENCENT_SECRET_ID": "",
  "TENCENT_SECRET_KEY": "",
  // 规则列表
  "rules": {
    // 证书域名
    "*.example.com": {
      // 要更新的目标
      "target": [
        "a.example.com",
        "b.example.com",
        "c.example.com",
        "d.example.com"
      ],
      // 证书公钥与私钥
      "cert_file": "./cert.crt",
      "cert_key_file": "./cert.key"
    }
  }
}

配合 ACME 自动更新证书,定时运行该脚本即可

About

腾讯云自动上传本地证书并部署至 CDN 脚本

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%