class Net::SSH::Proxy::HTTPS
information is not sent in plaintext.
using OpenSSL. This has the advantage that proxy authentication
A specialization of the HTTP proxy which encrypts the whole connection
def establish_connection(connect_timeout)
def establish_connection(connect_timeout) plain_socket = super(connect_timeout) OpenSSL::SSL::SSLSocket.new(plain_socket, @ssl_context).tap do |socket| socket.extend(SSLSocketCompatibility) socket.connect end end
def initialize(proxy_host, proxy_port = 80, options = {})
taken by Net::SSH::Proxy::HTTP it supports:
can be used to tweak this proxy connection. In addition to the options
port. The +options+ parameter is a hash of additional settings that
Create a new socket factory that tunnels via the given host and
def initialize(proxy_host, proxy_port = 80, options = {}) @ssl_context = options.delete(:ssl_context) || OpenSSL::SSL::SSLContext.new super(proxy_host, proxy_port, options) end