Class: OpenAgent::SSLConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/openagent/ssl_config.rb

Instance Method Summary collapse

Instance Method Details

#cert_keyObject



22
23
24
# File 'lib/openagent/ssl_config.rb', line 22

def cert_key
  "#{client_cert} #{client_key}"
end

#configure(conn) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/openagent/ssl_config.rb', line 13

def configure(conn)
  conn.use_ssl = true
  conn.verify_mode = verify_mode

  conn.cert    = client_cert if client_cert
  conn.key     = client_key  if client_key
  conn.ca_file = ca_file     if ca_file
end