mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-05-15 03:20:00 +02:00
Add DNS-PERSIST-01 challenge support
- Add dns-persist-01 to allowed challenge types in verify_config() - Implement dns-persist-01 case in challenge preparation (no dynamic token) - Skip deployment and cleanup for dns-persist-01 - Update help text and documentation - Add man page and README updates - Update CHANGELOG
This commit is contained in:
committed by
Lukas Schauer
parent
c63d1cb528
commit
cfd637d769
@@ -29,3 +29,24 @@ Or when you do have a DNS API, pass the details accordingly to achieve the same
|
||||
You can delete the TXT record when called with operation `clean_challenge`, when $2 is also the domain name.
|
||||
|
||||
Here are some examples: [Examples for DNS-01 hooks](https://github.com/dehydrated-io/dehydrated/wiki)
|
||||
|
||||
### dns-persist-01 challenge
|
||||
|
||||
This script also supports the `dns-persist-01`-type verification. This type of verification requires you to create a persistent `TXT` DNS record containing your Let's Encrypt account information.
|
||||
|
||||
Unlike `dns-01`, which requires dynamic DNS record updates for each certificate request, `dns-persist-01` uses a single persistent record that remains in place indefinitely.
|
||||
|
||||
You need to create a TXT record named `_validation-persist` in the domain for which you want to request certificates. The record should contain your account URI and other metadata.
|
||||
|
||||
Example record:
|
||||
```
|
||||
_validation-persist.example.com. IN TXT (
|
||||
"letsencrypt.org;"
|
||||
" accounturi=https://acme-v02.api.letsencrypt.org/acme/acct/1234567890;"
|
||||
" policy=wildcard"
|
||||
)
|
||||
```
|
||||
|
||||
The account URI can be obtained by running `dehydrated --register --accept-terms` and checking the account registration response, or by examining the `accounts/*/registration.json` file after registration.
|
||||
|
||||
This record should be set up once and left in place. No hook script is required for `dns-persist-01` as dehydrated does not perform any dynamic DNS updates for this challenge type.
|
||||
|
||||
Reference in New Issue
Block a user