Permalink
Browse files

Fix the certificate verify error by fixing path to pem file.

  • Loading branch information...
1 parent 9b25004 commit 23b362bfcc40297c0257ce7ea7bfcc4ffd8253f1 @vijaydev committed Feb 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/gist.rb
View
@@ -120,7 +120,7 @@ def write(files, private_gist = false)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
- http.ca_file = File.join(File.dirname(__FILE__), "cacert.pem")
+ http.ca_file = File.join(File.dirname(__FILE__), "gist/cacert.pem")
req = Net::HTTP::Post.new(url.path)
req.form_data = data(files, private_gist)

0 comments on commit 23b362b

Please sign in to comment.