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
-
#ssl_cert ⇒ Object
Returns the value of attribute ssl_cert.
-
#ssl_key ⇒ Object
Returns the value of attribute ssl_key.
Instance Method Summary collapse
-
#open_connection ⇒ Object
:nodoc:.
Instance Attribute Details
#ssl_cert ⇒ Object
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_key ⇒ Object
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_connection ⇒ Object
: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 |