ryanb / private_pub

Handle pub/sub messaging through private channels in Rails using Faye.
MIT License
864 stars 228 forks source link

Have a configuration setting to turn off http.verify_mode #94

Open roca opened 10 years ago

roca commented 10 years ago

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.