Method: Inspec::Resources::X509CertificateResource#issuer

Defined in:
lib/resources/x509_certificate.rb

#issuerObject



93
94
95
96
97
98
99
# File 'lib/resources/x509_certificate.rb', line 93

def issuer
  return if @cert.nil?
  # Return cached subject if we have already parsed it
  return @parsed_issuer if @parsed_issuer
  # Use a Mash to make it easier to access hash elements in "its('issuer') {should ...}"
  @parsed_issuer = Hashie::Mash.new(Hash[@cert.issuer.to_a.map { |k, v, _| [k, v] }])
end