Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding the cacert from cURL.haxx.se

  • Loading branch information...
commit 8b27efcefa81b950661d4626d122f42575488e05 1 parent 5d52329
@jc00ke jc00ke authored
Showing with 3,514 additions and 1 deletion.
  1. +2 −0  README.rdoc
  2. +3,509 −0 lib/cacert.pem
  3. +2 −1  lib/story.rb
  4. +1 −0  spec/story_spec.rb
View
2  README.rdoc
@@ -36,6 +36,8 @@ The requested_by field should be the name of your project stakeholder exactly as
ssl: true
+SSL is being verified by peer using the cacert.pem from (cURL.haxx.se/ca/)[http://curl.haxx.se/ca/]
+
If your tracker project has "Use HTTPS" enabled then you'll want to add the above line to your config file.
== Usage
View
3,509 lib/cacert.pem
3,509 additions, 0 deletions not shown
View
3  lib/story.rb
@@ -9,7 +9,8 @@ def self.yaml
def self.config
@@config = yaml
scheme = if !!@@config['ssl']
- self.ssl_options = { :verify_mode => OpenSSL::SSL::VERIFY_PEER }
+ self.ssl_options = { :verify_mode => OpenSSL::SSL::VERIFY_PEER,
+ :ca_file => File.join(File.dirname(__FILE__), "cacert.pem") }
"https"
else
"http"
View
1  spec/story_spec.rb
@@ -32,6 +32,7 @@
Story.site.scheme.should == "https"
Story.ssl_options[:verify_mode].should == 1
+ File.open(File.expand_path('lib/cacert.pem')).readlines.find_all{ |l| l =~ /^Equifax/ }.count.should == 4
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.