Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Handling system default SSL cert store #104

wants to merge 1 commit into from

4 participants


No description provided.


What systems and ruby installations does this work on?


Any Ruby and cert has been installed system.

eg. on Ubuntu:

sudo apt-get install ca-certificates

So you tested this on (say) Debian, Ubuntu, CentOS, Fedora, OS X, and Windows? Or you just know that it works on Ubuntu?


I tested it on Ubuntu 10.04.4 LTS. (There no erros on my OS X)


Works on Arch Linux as well (and in fact fixes "certificate verify failed" errors, which appear despite the certificate being valid). I don't see why it wouldn't work on other systems...


After the merge we're no-longer validating SSL certs. If you'd like to fix this on the new code that'd be awesome :).

@ConradIrwin ConradIrwin closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 18, 2012
  1. @cho45
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/gist.rb
2  lib/gist.rb
@@ -135,6 +135,8 @@ def write(files, private_gist = false, description = nil)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
+ http.cert_store =
+ http.cert_store.set_default_paths
http.ca_file = ca_cert
req =
Something went wrong with that request. Please try again.