acme-common: use validation_method option instead of guessing
authorSergey Ponomarev <[email protected]>
Wed, 28 Feb 2024 19:59:27 +0000 (21:59 +0200)
committerToke Høiland-Jørgensen <[email protected]>
Fri, 1 Mar 2024 16:01:40 +0000 (17:01 +0100)
commit7d07c75154d8d77b39db1012493a21ef02cbf5bb
tree2a2ea1b408e8b9a5561e3eea4ac82dc9b063724a
parent5ad1f0ebbeaf64c07d06da2125fd7596e5be1a4b
acme-common: use validation_method option instead of guessing

The new validation_method option can be: dns, webroot or standalone.
Previously we guessed the challenge type:
1. if the DNS provider is specified then it's dns
2. if standalone=1
3. fallback to webroot

The logic is preserved and if the validation_method wasn't set explicitly we'll guess it in old manner.

Signed-off-by: Sergey Ponomarev <[email protected]>
net/acme-common/files/acme.config
net/acme-common/files/acme.init