Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Latest commit

 

History

28 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uploadcert_tencentcloud

Important

Project Status: Archived This project has been merged into caddy-upload-cert as part of a unified multi-cloud certificate upload solution. Please head over to the new repository for the latest updates, features, and bug fixes.

Overview

uploadcert_tencentcloud is an event handler module for Caddy that automatically uploads newly obtained certificates to Tencent Cloud SSL service and supports automatic certificate updates. The module supports whitelist and blacklist rules for certificates, allowing flexible control over which certificates should be uploaded.

Features

  • Listens for Caddy's cert_obtained event.
  • Automatically uploads new certificates to Tencent Cloud SSL.
  • Automatically updates existing certificates.
  • Supports whitelist (AllowList) and blacklist (BlockList) rules for certificate uploads.
  • Logs the upload and update processes.

Usage

Caddyfile Configuration Example

{
    events {
        on cert_obtained upload_cert_tencentcloud {
            secret_id {$TENCENTCLOUD_SECRET_ID}
            secret_key {$TENCENTCLOUD_SECRET_KEY}
            allow_list example.com www.example.com
            block_list test.example.com
            try_delete_old_cert
        }
    }
}
  • secret_id and secret_key: Tencent Cloud API credentials.
  • allow_list:Only upload certificates for the domains in this list (optional).
  • block_list:Do not upload certificates for the domains in this list (optional).
  • try_delete_old_cert:Try to delete the old certificate when the certificate is updated (optional).

Development & Contribution

Contributions through issues and pull requests are welcome to improve this module.

License

MIT License

About

Caddy event handler that auto-uploads certificates to Tencent Cloud SSL and supports automatic updates.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages