Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

try to fix the ssl error

  • Loading branch information...
commit 4a4203e62d76495cd35d7774296e502d13376254 1 parent 8486768
Roc Yu rociiu authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 config/initializers/ssl_fix.rb
10 config/initializers/ssl_fix.rb
View
@@ -0,0 +1,10 @@
+require 'net/http'
+require 'openssl'
+
+class Net::HTTP alias_method :origConnect, :connect
+ def connect
+ @ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE
+ origConnect
+ end
+end
+
Please sign in to comment.
Something went wrong with that request. Please try again.