class HTTPI::Auth::SSL
Public Instance Methods
cert()
click to toggle source
# 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
cert_key()
click to toggle source
# File lib/nfedobrasil/monkey_patches.rb, line 45 def cert_key if @pkcs12 @cert_key ||= @pkcs12.key else @cert_key ||= (OpenSSL::PKey.read(File.read(cert_key_file), cert_key_password) if cert_key_file) end end
plcs_file(file, password)
click to toggle source
# File lib/nfedobrasil/monkey_patches.rb, line 33 def plcs_file(file, password) @pkcs12 = OpenSSL::PKCS12.new(File.read(file), password) end