Last Updated: February 25, 2016
·
421
· dinks

No SSL for development env

This is a great snippet from diaspora..

https://github.com/diaspora/diaspora/blob/develop/config/initializers/ignore_ssl_in_development.rb

if AppConfig.environment.certificate_authorities.blank? && (Rails.env == "development")
  module OpenSSL
    module SSL
      remove_const :VERIFY_PEER
    end
  end
  OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
end