Skip to content

Conversation

rduplain
Copy link

@rduplain rduplain commented Jan 1, 2011

rduplain/gist@1e29722b84635b8fa680dca4fd7e32a976402138 uses bundled CA certificates to fix #23 where the gist script was unable to Gist.write using HTTPS.

It's not clear to me how this project is used outside the standalone script, so I couldn't verify that http.ca_file is being set correctly when not using the standalone gist script.

Other commits address an issue where rake standalone was building the gist script in the wrong order on my Debian-based GNU/Linux machine.

-Ron

Order is very important in building the standalone script, so hopefully
these verbose messages will make it clearer when the build gets
out-of-order, e.g. because of aggressive globbing in the build script.
@@ -120,7 +120,19 @@ module Gist

http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
http.ca_file = File.join(File.dirname(__FILE__), "cacert.pem")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

http.ca_file = File.join(File.dirname(__FILE__), "gist", "cacert.pem") fixes the issue for me. Just a path issue, cacert.pem is located in lib/gist/ not lib/ where this file is looking for it.

@defunkt
Copy link
Owner

defunkt commented Feb 22, 2011

Thanks!

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SSL error "certificate verify failed"
3 participants