From 0521f50146883f54df08f562d17f29e9e6dbf546 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Sun, 9 Jul 2023 14:15:40 +0200 Subject: [PATCH] Fix certificate start time I doubt anyone ever looked at it, but it shouldn't be 1 day in the future ;) --- plugins/ice/src/dtls_srtp.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ice/src/dtls_srtp.vala b/plugins/ice/src/dtls_srtp.vala index e2817ef3..c9813b7e 100644 --- a/plugins/ice/src/dtls_srtp.vala +++ b/plugins/ice/src/dtls_srtp.vala @@ -86,7 +86,7 @@ public class Handler { err = private_key.generate(PKAlgorithm.ECDSA, 256); throw_if_error(err); - var start_time = new DateTime.now_local().add_days(1); + var start_time = new DateTime.now_local().add_days(-1); var end_time = start_time.add_days(2); X509.Certificate cert = X509.Certificate.create();