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.
Calls superclass method
T2Server::DefaultConnectionParameters.new
# File lib/t2-server/net/parameters.rb, line 149 def initialize(cert, password = nil) super() case cert when String self[:client_certificate] = cert when File self[:client_certificate] = cert.path end self[:client_password] = password end