lib/sslcheck/validators/issue_date.rb in sslcheck-0.9.0 vs lib/sslcheck/validators/issue_date.rb in sslcheck-0.9.1
- old
+ new
@@ -1,4 +1,6 @@
+require 'date'
+
module SSLCheck
module Validators
class IssueDate < GenericValidator
def validate(clock=DateTime)
return nil if clock.now > @peer_cert.not_before