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/net/parameters.rb, line 149
def initialize(cert, password = nil)

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

  self[:client_password] = password