class T2Server::ClientAuthSSLConnectionParameters

Connection parameters that simplify setting up client authentication to a server over SSL.

Public Class Methods

new(certificate, password = nil) → ClientAuthSSLConnectionParameters click to toggle source

certificate should point to a file with the client user's certificate and private key. The key will be unlocked with password if it is encrypted. If password is not specified, but needed, then the underlying SSL implementation may ask for it if it can.

# File lib/t2-server/connection-parameters.rb, line 131
def initialize(cert, password = nil)

  case cert
  when String
    self[:client_certificate] = cert
  when File
    self[:client_certificate] = cert.path

  self[:client_password] = password