Module: EPPClient::SSL
- Included in:
- Base
- Defined in:
- lib/epp-client/ssl.rb
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.
3 4 5 |
# File 'lib/epp-client/ssl.rb', line 3 def ssl_cert @ssl_cert end |
#ssl_key ⇒ Object
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_connection ⇒ Object
: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 |