Skip to content

Commit

Permalink
certs: No default not_before
Browse files Browse the repository at this point in the history
  • Loading branch information
kvinwang committed Jan 2, 2025
1 parent 74fc835 commit 440f860
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ra-tls/src/cert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ impl CertRequest<'_> {
params.is_ca = IsCa::Ca(BasicConstraints::Constrained(ca_level));
}
}
params.not_before = self.not_before.unwrap_or_else(SystemTime::now).into();
if let Some(not_before) = self.not_before {
params.not_before = not_before.into();
}
params.not_after = self
.not_after
.unwrap_or_else(|| {
Expand Down

0 comments on commit 440f860

Please sign in to comment.