Method: HTTPI::Auth::SSL#cert

Defined in:
lib/nfedobrasil/monkey_patches.rb

#certObject



37
38
39
40
41
42
43
# File 'lib/nfedobrasil/monkey_patches.rb', line 37

def cert
  if @pkcs12
    @cert ||= @pkcs12.certificate
  else
    @cert ||= (OpenSSL::X509::Certificate.new File.read(cert_file) if cert_file)
  end
end