class OpenSSL::SSL::SSLContext

def set_params(params={})

used.
cert_store are not set then the system default certificate store is
If the verify_mode is not VERIFY_NONE and ca_file, ca_path and

The keys in _params_ must be assignment methods on SSLContext.
If a Hash _params_ is given, the parameters are overridden with it.

Sets saner defaults optimized for the use with HTTP-like protocols.

ctx.set_params(params = {}) -> params
call-seq:
#
def set_params(params={})
  params = DEFAULT_PARAMS.merge(params)
  self.options = params.delete(:options) # set before min_version/max_version
  params.each{|name, value| self.__send__("#{name}=", value) }
  if self.verify_mode != OpenSSL::SSL::VERIFY_NONE
    unless self.ca_file or self.ca_path or self.cert_store
      self.cert_store = DEFAULT_CERT_STORE
    end
  end
  return params
end