Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Handling system default SSL cert store #104

Closed
wants to merge 1 commit into from

4 participants

@cho45

No description provided.

@indirect
Collaborator

What systems and ruby installations does this work on?

@cho45

Any Ruby and cert has been installed system.

eg. on Ubuntu:

sudo apt-get install ca-certificates
@indirect
Collaborator

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

@cho45

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

@grawity

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...

@ConradIrwin
Collaborator

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
View
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 = OpenSSL::X509::Store.new
+ http.cert_store.set_default_paths
http.ca_file = ca_cert
req = Net::HTTP::Post.new(url.path)
Something went wrong with that request. Please try again.