lib/cloudkick/base.rb in cloudkick-0.2.4 vs lib/cloudkick/base.rb in cloudkick-0.2.5
- old
+ new
@@ -12,9 +12,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.
require 'oauth'
require 'openssl'
+# hack for certificate verification failure
+module OpenSSL
+ module SSL
+ remove_const :VERIFY_PEER
+ end
+end
+
module Cloudkick
class Base
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
def initialize(consumer_key, consumer_secret)