class T2Server::CustomCASSLConnectionParameters
Connection parameters that simplify setting up verification of servers with “self-signed” or non-standard certificates.
Public Class Methods
new(path) → CustomCASSLConnectionParameters
click to toggle source
path can either be a directory where the required certificate is stored or the path to the certificate file itself.
Calls superclass method
T2Server::DefaultConnectionParameters::new
# File lib/t2-server/net/parameters.rb 124 def initialize(path) 125 super() 126 127 case path 128 when String 129 self[:ca_path] = path if File.directory? path 130 self[:ca_file] = path if File.file? path 131 when File 132 self[:ca_file] = path.path 133 when Dir 134 self[:ca_path] = path.path 135 end 136 end