Move ACME client to opnsense
This commit is contained in:
parent
885021c49e
commit
9fb03640e0
1 changed files with 4 additions and 19 deletions
|
@ -10,23 +10,8 @@
|
|||
];
|
||||
};
|
||||
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
certs."vsinerva.fi".extraDomainNames = [ "*.vsinerva.fi" ];
|
||||
defaults = {
|
||||
email = "vili.m.sinerva@gmail.com";
|
||||
environmentFile = "/var/lib/acme/dns-creds";
|
||||
dnsProvider = "ovh";
|
||||
extraLegoFlags = [
|
||||
"--dns.propagation-wait"
|
||||
"60s"
|
||||
users.users.root.openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBsctvJR4JOVoTAas0+lb8662EXFsQVNozTntnR7o5R1 opnsense"
|
||||
];
|
||||
postRun = ''
|
||||
mkdir -p ${config.users.users."cert-store".home}/acme
|
||||
cp fullchain.pem ${config.users.users."cert-store".home}/acme/
|
||||
cp key.pem ${config.users.users."cert-store".home}/acme/
|
||||
chmod o+r ${config.users.users."cert-store".home}/acme/*.pem
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue