mirror of
https://github.com/erebe/wstunnel.git
synced 2025-09-26 19:21:10 +08:00
bump self-signed certificate to 2025
This commit is contained in:
@@ -19,7 +19,7 @@ pub static TLS_CERTIFICATE: LazyLock<(Vec<CertificateDer<'static>>, PrivateKeyDe
|
||||
cert.not_before = date_time_ymd(year, month, day);
|
||||
|
||||
let el = now.elapsed();
|
||||
let year = 2024 + (el.as_nanos() % 50) as i32;
|
||||
let year = 2025 + (el.as_nanos() % 50) as i32;
|
||||
let month = 1 + (el.as_nanos() % 12) as u8;
|
||||
let day = 1 + (el.as_nanos() % 28) as u8;
|
||||
cert.not_after = date_time_ymd(year, month, day);
|
||||
|
Reference in New Issue
Block a user