ncr / rack-proxy

A request/response rewriting HTTP proxy. A Rack app.
MIT License
269 stars 94 forks source link

Ability to disable SSL session verification #28

Closed ghost closed 10 years ago

ghost commented 10 years ago

@ncr - this is @pvdb coming to you from our team account here on github.com

The changes in this pull request add the ability to disable SSL session verification in Rack::Proxy in case you're targeting e.g. a test server with self-signed SSL certs.

It boils down to doing:

http.verify_mode = OpenSSL::SSL::VERIFY_NONE if http.use_ssl?

... in all the right places!

Closes ncr/rack-proxy#16