class CertificateChecker::CertificateChecker
EventWrapper
Attributes
certificate[R]
file[R]
line[R]
Public Class Methods
new(file, line, certificate)
click to toggle source
# File lib/certificate-checker/certificate_checker.rb, line 10 def initialize(file, line, certificate) @file = file @line = line @certificate = certificate end
Public Instance Methods
to_e()
click to toggle source
# File lib/certificate-checker/certificate_checker.rb, line 16 def to_e InternetSecurityEvent::X509Status.build(certificate).merge( service: service, line: line, ttl: 3600 * 12, tags: ['certificate-checker'], ) end
Private Instance Methods
service()
click to toggle source
# File lib/certificate-checker/certificate_checker.rb, line 27 def service "#{file}:#{certificate.issuer}:#{certificate.subject}" end