class SSLyze::XML::Certinfo

Represents the `<certinfo>` XML element.

@since 1.0.0

Public Instance Methods

certificate_validation() click to toggle source

Certificate validation information.

@return [CertificateValidation]

# File lib/sslyze/xml/certinfo.rb, line 34
def certificate_validation
  @certificate_validation ||= CertificateValidation.new(
    @node.at_xpath('certificateValidation')
  )
end
Also aliased as: validation
ocsp_stapling() click to toggle source

OCSP Stapling.

@return [OCSPStapling]

# File lib/sslyze/xml/certinfo.rb, line 61
def ocsp_stapling
  @ocsp_stapling ||= OCSPStapling.new(@node.at_xpath('ocspStapling'))
end
received_certificate_chain() click to toggle source

The received certificate chain.

@return [ReceivedCertificateChain]

# File lib/sslyze/xml/certinfo.rb, line 21
def received_certificate_chain
  @received_certificate_chain ||= ReceivedCertificateChain.new(
    @node.at_xpath('receivedCertificateChain')
  )
end
Also aliased as: received_chain
received_chain()
validation()
verified_certificate_chain() click to toggle source

The verified certificate chain.

@return [VerifiedCertificateChain, nil]

# File lib/sslyze/xml/certinfo.rb, line 47
def verified_certificate_chain
  @verified_certificate_chain ||= if (element = @node.at_xpath('certificateValidation/verifiedCertificateChain'))
                                    CertificateValidation::VerifiedCertificateChain.new(element)
                                    
                                  end
end
Also aliased as: verified_chain
verified_chain()