[fix] issue certs that have already been valid for a little bit (1 hour) #4

This commit is contained in:
core 2023-09-28 21:48:22 -04:00
parent de64f1ed00
commit 2f48449c47
Signed by: core
GPG Key ID: FDBF740DADDCEECF
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ pub async fn generate_config(
.unwrap()], .unwrap()],
subnets: vec![], subnets: vec![],
groups: vec![format!("role:{}", info.host.role)], groups: vec![format!("role:{}", info.host.role)],
not_before: SystemTime::now(), not_before: SystemTime::now() - Duration::from_secs(3600), // make certs that have already been valid for an hour. if your system clock is more than an hour behind, it is no longer my problem
not_after: SystemTime::now() + Duration::from_secs(CONFIG.crypto.certs_expiry_time), not_after: SystemTime::now() + Duration::from_secs(CONFIG.crypto.certs_expiry_time),
public_key: info.dh_pubkey.clone().try_into().unwrap(), public_key: info.dh_pubkey.clone().try_into().unwrap(),
is_ca: false, is_ca: false,