lnd: add certificate options extraIPs and extraDomains
This is useful for non-local access to the lnd REST server.
This commit is contained in:
parent
60a27d58a6
commit
edfbe700e7
4 changed files with 54 additions and 7 deletions
|
|
@ -109,4 +109,10 @@ let self = {
|
|||
|
||||
optionalAttr = cond: name: if cond then name else null;
|
||||
|
||||
mkCertExtraAltNames = cert:
|
||||
builtins.concatStringsSep "," (
|
||||
(map (domain: "DNS:${domain}") cert.extraDomains) ++
|
||||
(map (ip: "IP:${ip}") cert.extraIPs)
|
||||
);
|
||||
|
||||
}; in self
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue