From 2ae75fc7d3e3a3eb24cd0e3f56374d0a93cb6687 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Thu, 1 Feb 2024 23:32:55 +1300 Subject: [PATCH] Limit certificate validitiy to 1 year. --- lib/localhost/authority.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/localhost/authority.rb b/lib/localhost/authority.rb index 7dc7d79..5275b71 100644 --- a/lib/localhost/authority.rb +++ b/lib/localhost/authority.rb @@ -112,7 +112,7 @@ def certificate certificate.version = 2 certificate.not_before = Time.now - certificate.not_after = Time.now + (3600 * 24 * 365 * 10) + certificate.not_after = Time.now + (3600 * 24 * 365) extension_factory = OpenSSL::X509::ExtensionFactory.new extension_factory.subject_certificate = certificate