correctly warmup cert store
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Quentin 2023-12-13 09:57:55 +01:00
parent 388d5b2275
commit 5a326222c4
Signed by: quentin
GPG Key ID: E9602264D639FF68
1 changed files with 3 additions and 2 deletions

View File

@ -254,14 +254,15 @@ impl CertStore {
consul_certs.len()
);
let mut loaded_certs: usize = 0;
for (domain, cert) in consul_certs {
for (key, cert) in consul_certs {
let certser: CertSer = match serde_json::from_slice(&cert) {
Ok(cs) => cs,
Err(e) => {
warn!("Could not deserialize CertSer for {domain}: {e}");
warn!("Could not deserialize CertSer for {key}: {e}");
continue;
}
};
let domain = certser.hostname.clone();
let cert = match Cert::new(certser) {
Ok(c) => c,