Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

roca
Copy link

@roca roca commented Jan 27, 2014

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.

Have a configuration setting to turn off http.verify_mode
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant