Wednesday, November 6, 2013

HTTParty SSL set verify_none

Friend of mine had an issue with setting SSL self.verify_mode = OpenSSL::SSL::VERIFY_NONE. This was the default for a while back in the 0.9 days. It seems there was a bit of a change in how this is done. The code that handles verify_mode for HTTParty is here. The solution is to set it per-request, like this:

self.get("/something", :verify => false)

Just wanted to make a note of this since it doesn't seem to be on Google anywhere.

No comments: