Module: EPPClient::SSL

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ssl_certObject

Returns the value of attribute ssl_cert.



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

def ssl_cert
  @ssl_cert
end

#ssl_keyObject

Returns the value of attribute ssl_key.



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

def ssl_key
  @ssl_key
end

Instance Method Details

#open_connectionObject

:nodoc:



33
34
35
36
37
# File 'lib/epp-client/ssl.rb', line 33

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