Class: T2Server::CustomCASSLConnectionParameters
- Inherits:
-
DefaultConnectionParameters
- Object
- ConnectionParameters
- DefaultConnectionParameters
- T2Server::CustomCASSLConnectionParameters
- Defined in:
- lib/t2-server/net/parameters.rb
Overview
Connection parameters that simplify setting up verification of servers with “self-signed” or non-standard certificates.
Constant Summary
Constants inherited from ConnectionParameters
T2Server::ConnectionParameters::ALLOWED_PARAMS
Instance Method Summary collapse
-
#initialize(path) ⇒ CustomCASSLConnectionParameters
constructor
:call-seq: new(path) -> CustomCASSLConnectionParameters.
Methods inherited from ConnectionParameters
Constructor Details
#initialize(path) ⇒ CustomCASSLConnectionParameters
:call-seq:
new(path) -> CustomCASSLConnectionParameters
path can either be a directory where the required certificate is stored or the path to the certificate file itself.
124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/t2-server/net/parameters.rb', line 124 def initialize(path) super case path when String self[:ca_path] = path if File.directory? path self[:ca_file] = path if File.file? path when File self[:ca_file] = path.path when Dir self[:ca_path] = path.path end end |