mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 21:13:09 +00:00
actually update ssl certificate in persistence when we are within the expiration window.
This commit is contained in:
committed by
Aiden McClelland
parent
492cb7440b
commit
0a4f60ae26
@@ -188,6 +188,7 @@ impl SslManager {
|
|||||||
if expiration.compare(&window_end)? == Ordering::Less {
|
if expiration.compare(&window_end)? == Ordering::Less {
|
||||||
let key = generate_key()?;
|
let key = generate_key()?;
|
||||||
let cert = make_leaf_cert((&self.int_key, &self.int_cert), (&key, dns_base))?;
|
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))
|
Ok((key, cert))
|
||||||
} else {
|
} else {
|
||||||
Ok((key, cert))
|
Ok((key, cert))
|
||||||
|
|||||||
Reference in New Issue
Block a user