mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-11-18 14:29:09 +01:00
node001: keep the mail certificate key on renewal
Each renewal made a new key, so a TLSA record that pins the key went stale every 60 days. With --reuse-key the key stays, and one 3 1 1 record can describe it. Deploying this orders a new certificate once, with a new key, because NixOS hashes the lego flags. The TLSA record goes in after that.
This commit is contained in:
1 parent
be173c571f
commit
9e7b2099f1
1 file changed
+7
@@ -154,6 +154,13 @@ in
|
||||
"autodiscover.rubenhensen.nl"
|
||||
"rubenhensen.nl"
|
||||
];
|
||||
# Keep the same key on renewal. The TLSA record in
|
||||
# dns/domains/rubenhensen.nl.yaml pins this key, and senders that
|
||||
# enforce DANE stop delivering when the two differ. Changing the
|
||||
# names or the lego flags of this cert makes NixOS order a new one
|
||||
# with a fresh key, so take the record out first and put the new
|
||||
# hash back afterwards.
|
||||
extraLegoRenewFlags = [ "--reuse-key" ];
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user