feat: Add optional DNS hook mode for certonly

Co-authored-by: mathieumoran1 <[email protected]>
This commit is contained in:
Cursor Agent
2025-12-22 08:40:25 +00:00
co-authored by mathieumoran1
parent 02dc41d63f
commit 98f40488aa
3 changed files with 42 additions and 10 deletions
+11 -1
View File
@@ -52,13 +52,23 @@ python3 -m python_video_server.letsencrypt certonly \
--domains example.com,www.example.com
```
During issuance, you'll be prompted to create a TXT record like:
During issuance, certbot will prompt you to create a TXT record like:
- Name: `_acme-challenge.example.com`
- Type: `TXT`
- Value: (a token certbot prints)
After it propagates, press Enter and certbot will continue.
If you run into a situation where the prompt/token only shows up in logs, you can try the hook-based mode:
```bash
python3 -m python_video_server.letsencrypt certonly \
--challenge dns \
--dns-hooks \
--email [email protected] \
--domains example.com,www.example.com
```
Certificates will be written under:
- `python_video_server/certs/config/live/<primary-domain>/fullchain.pem`
- `python_video_server/certs/config/live/<primary-domain>/privkey.pem`