Class: SSLyze::XML::Certinfo
- Defined in:
- lib/sslyze/xml/certinfo.rb,
lib/sslyze/xml/certinfo/certificate.rb,
lib/sslyze/xml/certinfo/ocsp_stapling.rb,
lib/sslyze/xml/certinfo/has_certificates.rb,
lib/sslyze/xml/certinfo/certificate/public_key.rb,
lib/sslyze/xml/certinfo/certificate_validation.rb,
lib/sslyze/xml/certinfo/received_certificate_chain.rb,
lib/sslyze/xml/certinfo/ocsp_stapling/ocsp_response.rb,
lib/sslyze/xml/certinfo/certificate_validation/path_validation.rb,
lib/sslyze/xml/certinfo/certificate_validation/hostname_validation.rb,
lib/sslyze/xml/certinfo/certificate_validation/verified_certificate_chain.rb
Overview
Represents the <certinfo>
XML element.
Defined Under Namespace
Modules: HasCertificates Classes: Certificate, CertificateValidation, OCSPStapling, ReceivedCertificateChain
Instance Method Summary collapse
-
#certificate_validation ⇒ CertificateValidation
(also: #validation)
Certificate validation information.
-
#ocsp_stapling ⇒ OCSPStapling
OCSP Stapling.
-
#received_certificate_chain ⇒ ReceivedCertificateChain
(also: #received_chain)
The received certificate chain.
-
#verified_certificate_chain ⇒ VerifiedCertificateChain?
(also: #verified_chain)
The verified certificate chain.
Methods inherited from Plugin
Methods included from Attributes::Exception
Methods included from Attributes::Title
Constructor Details
This class inherits a constructor from SSLyze::XML::Plugin
Instance Method Details
#certificate_validation ⇒ CertificateValidation Also known as: validation
Certificate validation information.
34 35 36 37 38 |
# File 'lib/sslyze/xml/certinfo.rb', line 34 def certificate_validation @certificate_validation ||= CertificateValidation.new( @node.at_xpath('certificateValidation') ) end |
#ocsp_stapling ⇒ OCSPStapling
OCSP Stapling.
61 62 63 |
# File 'lib/sslyze/xml/certinfo.rb', line 61 def ocsp_stapling @ocsp_stapling ||= OCSPStapling.new(@node.at_xpath('ocspStapling')) end |
#received_certificate_chain ⇒ ReceivedCertificateChain Also known as: received_chain
The received certificate chain.
21 22 23 24 25 |
# File 'lib/sslyze/xml/certinfo.rb', line 21 def received_certificate_chain @received_certificate_chain ||= ReceivedCertificateChain.new( @node.at_xpath('receivedCertificateChain') ) end |
#verified_certificate_chain ⇒ VerifiedCertificateChain? Also known as: verified_chain
The verified certificate chain.
47 48 49 50 51 52 |
# 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 |