ryanb/private_pub — pull request #95 by roca (2014-01-27 19:49:00+00:00)
Title: #94 Have a configuration setting to turn off http.verify_mode

Depending on your servers openssl (the server issuing the request) configuration you may also need to set the http.verify_mode option.

if url.scheme == "https"
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE if config[:ssl_verify_mode] == true
end

This gets around the "SSL not-verified" error message you get when your server can not verify the response with the certificates installed on your server. You can get your system admin to reconfigure the openssl installation or add this piece code as a work around.