class Transbank::Webpay::Vault
Public Class Methods
cert()
click to toggle source
# File lib/transbank/webpay/vault.rb, line 6 def cert @cert ||= OpenSSL::X509::Certificate.new open(Transbank::Webpay.configuration.cert_path) end
private_key()
click to toggle source
# File lib/transbank/webpay/vault.rb, line 10 def private_key @private_key ||= OpenSSL::PKey::RSA.new open(Transbank::Webpay.configuration.key_path) end
pub_key()
click to toggle source
# File lib/transbank/webpay/vault.rb, line 21 def pub_key server_cert.public_key end
server_cert()
click to toggle source
# File lib/transbank/webpay/vault.rb, line 14 def server_cert @server_cert ||= begin path = Transbank::Webpay.configuration.server_cert_path OpenSSL::X509::Certificate.new File.read(path) end end