aboutsummaryrefslogtreecommitdiff
path: root/src/cert_store.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cert_store.rs')
-rw-r--r--src/cert_store.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cert_store.rs b/src/cert_store.rs
index c1381db..97fbf32 100644
--- a/src/cert_store.rs
+++ b/src/cert_store.rs
@@ -278,7 +278,7 @@ impl CertStore {
let certser = CertSer {
hostname: domain.to_string(),
- date: Utc::today().naive_utc(),
+ date: Utc::now().date_naive(),
valid_days: cert.valid_days_left()?,
key_pem,
cert_pem,
@@ -345,7 +345,7 @@ impl CertStore {
let certser = CertSer {
hostname: domain.to_string(),
- date: Utc::today().naive_utc(),
+ date: Utc::now().date_naive(),
valid_days: 1024,
key_pem: cert.serialize_private_key_pem(),
cert_pem: cert.serialize_pem()?,