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
149 def initialize(cert, password = nil)
150   super()
151 
152   case cert
153   when String
154     self[:client_certificate] = cert
155   when File
156     self[:client_certificate] = cert.path
157   end
158 
159   self[:client_password] = password
160 end