Skip to content

Commit 611b7d5

Browse files
committed
Limit certificate validitiy to 1 year.
1 parent 4c4424c commit 611b7d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/localhost/authority.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def certificate
112112
certificate.version = 2
113113

114114
certificate.not_before = Time.now
115-
certificate.not_after = Time.now + (3600 * 24 * 365 * 10)
115+
certificate.not_after = Time.now + (3600 * 24 * 365)
116116

117117
extension_factory = OpenSSL::X509::ExtensionFactory.new
118118
extension_factory.subject_certificate = certificate

0 commit comments

Comments
 (0)