aboutsummaryrefslogtreecommitdiff
path: root/src/cert_store.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-12-05 17:45:21 +0100
committerAlex Auvolat <alex@adnab.me>2022-12-05 17:52:27 +0100
commit43a0fe14b2ae6a3e97f39169cda7ca5579a3259c (patch)
tree30589d3e2b8b5e55520af303304c5bef6c4b5cf2 /src/cert_store.rs
parentd523c27ae4b3d86eb67fcf85af23ad223fd09b6c (diff)
downloadtricot-43a0fe14b2ae6a3e97f39169cda7ca5579a3259c.tar.gz
tricot-43a0fe14b2ae6a3e97f39169cda7ca5579a3259c.zip
Update dependencies
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()?,