Sha256: bb4bc7c17d37e717185dc53f5318483d164e004a93044b8c787a110f0fd32e2b
Contents?: true
Size: 716 Bytes
Versions: 5
Compression:
Stored size: 716 Bytes
Contents
module Akami class WSSE # Contains certs for WSSE::Signature class Certs def initialize(certs = {}) certs.each do |key, value| self.send :"#{key}=", value end end attr_accessor :cert_file, :private_key_file, :private_key_password # Returns an <tt>OpenSSL::X509::Certificate</tt> for the +cert_file+. def cert @cert ||= OpenSSL::X509::Certificate.new File.read(cert_file) if cert_file end # Returns an <tt>OpenSSL::PKey::RSA</tt> for the +private_key_file+. def private_key @private_key ||= OpenSSL::PKey::RSA.new(File.read(private_key_file), private_key_password) if private_key_file end end end end
Version data entries
5 entries across 5 versions & 2 rubygems