mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
acme: Support DNS mode
Tested with dynu.com ddns.
Install acme-dnsapi:
# opkg install acme-dnsapi
Example `/etc/config/acme`:
config acme
option state_dir '/etc/acme'
option account_email email@example.org'
option debug '0'
config cert 'foo'
option enabled '1'
option use_staging '1'
option keylength '2048'
option update_uhttpd '0'
option dns 'dns_dynu'
list domains 'foo.dynu.com'
list domains '*.foo.dynu.com'
list credentials 'Dynu_ClientId="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"'
list credentials 'Dynu_Secret="yyyyyyyyyyyyyyyyyyyyyyyyy"'
Run:
# /etc/init.d/acme start
Signed-off-by: Zhong Jianxin <azuwis@gmail.com>
This commit is contained in:
committed by
Toke Høiland-Jørgensen
parent
a6ea246cb2
commit
b528ec5e79
@@ -69,4 +69,18 @@ dom = cs:option(DynamicList, "domains", translate("Domain names"),
|
||||
"Note that all domain names must point at the router in the global DNS."))
|
||||
dom.datatype = "list(string)"
|
||||
|
||||
dns = cs:option(Value, "dns", translate("DNS API"),
|
||||
translate("To use DNS mode to issue certificates, set this to the name of a DNS API supported by acme.sh. " ..
|
||||
"See https://github.com/Neilpang/acme.sh/tree/master/dnsapi for the list of available APIs. " ..
|
||||
"In DNS mode, the domain name does not have to resolve to the router IP. " ..
|
||||
"DNS mode is also the only mode that supports wildcard certificates. " ..
|
||||
"Using this mode requires the acme-dnsapi package to be installed."))
|
||||
dns.rmempty = false
|
||||
|
||||
cred = cs:option(DynamicList, "credentials", translate("DNS API credentials"),
|
||||
translate("The credentials for the DNS API mode selected above. " ..
|
||||
"See https://github.com/Neilpang/acme.sh/tree/master/dnsapi#how-to-use-dns-api for the format of credentials required by each API. " ..
|
||||
"Add multiple entries here in KEY=VAL shell variable format to supply multiple credential variables."))
|
||||
cred.datatype = "list(string)"
|
||||
|
||||
return m
|
||||
|
||||
Reference in New Issue
Block a user