actually update ssl certificate in persistence when we are within the expiration window.

This commit is contained in:
Keagan McClelland
2021-10-12 17:36:12 -06:00
committed by Aiden McClelland
parent 492cb7440b
commit 0a4f60ae26

View File

@@ -188,6 +188,7 @@ impl SslManager {
if expiration.compare(&window_end)? == Ordering::Less {
let key = generate_key()?;
let cert = make_leaf_cert((&self.int_key, &self.int_cert), (&key, dns_base))?;
self.store.update_certificate(&key, &cert, dns_base).await?;
Ok((key, cert))
} else {
Ok((key, cert))