https://github.com/okrc/caddy-uploadcert-tencentcloud
Caddy event handler that auto-uploads certificates to Tencent Cloud SSL and supports automatic updates.
https://github.com/okrc/caddy-uploadcert-tencentcloud
caddy caddy-module caddy-plugin cert-pipeline tencentcloud
Last synced: 3 months ago
JSON representation
Caddy event handler that auto-uploads certificates to Tencent Cloud SSL and supports automatic updates.
- Host: GitHub
- URL: https://github.com/okrc/caddy-uploadcert-tencentcloud
- Owner: okrc
- License: mit
- Created: 2025-07-30T05:08:06.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2026-03-06T23:44:23.000Z (3 months ago)
- Last Synced: 2026-03-07T04:39:54.826Z (3 months ago)
- Topics: caddy, caddy-module, caddy-plugin, cert-pipeline, tencentcloud
- Language: Go
- Homepage: https://okrc.github.io/caddy-uploadcert-tencentcloud/
- Size: 69.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# uploadcert_tencentcloud
## 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
```caddyfile
{
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