Class: Proxi::SSLSocketFactory
- Inherits:
-
TCPSocketFactory
- Object
- TCPSocketFactory
- Proxi::SSLSocketFactory
- Defined in:
- lib/proxi/socket_factory.rb
Overview
### SSLSocketFactory
This will set up an encrypted (SSL, https) connection to the target host. This way the proxy server communicates unencrypted locally, but encrypts/decrypts communication with the remote host.
If you want to forward SSL connections as-is, use a ‘TCPSocketFactory`, in that case however you won’t be able to inspect any data passing through, since it will be encrypted.
Instance Method Summary collapse
Methods inherited from TCPSocketFactory
Constructor Details
This class inherits a constructor from Proxi::TCPSocketFactory
Instance Method Details
#call ⇒ Object
29 30 31 |
# File 'lib/proxi/socket_factory.rb', line 29 def call OpenSSL::SSL::SSLSocket.new(super).tap(&:connect) end |