Module: EPPClient::SSL

Included in:
Base
Defined in:
lib/epp-client/ssl.rb

Overview

This module handles the SSL strangeness that happens with EPP.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ssl_certObject

Returns the value of attribute ssl_cert.



4
5
6
# File 'lib/epp-client/ssl.rb', line 4

def ssl_cert
  @ssl_cert
end

#ssl_keyObject

Returns the value of attribute ssl_key.



4
5
6
# File 'lib/epp-client/ssl.rb', line 4

def ssl_key
  @ssl_key
end

Instance Method Details

#open_connectionObject

:nodoc:



30
31
32
33
34
# File 'lib/epp-client/ssl.rb', line 30

def open_connection # :nodoc:
  @context.cert ||= ssl_cert if ssl_cert.is_a?(OpenSSL::X509::Certificate)
  @context.key ||= ssl_key if ssl_key.is_a?(OpenSSL::PKey::RSA)
  super
end