Flowdock
method

create_ssl_params

Importance_0
v1_9_3_392 - Show latest stable - 0 notes - Class: Net::IMAP
create_ssl_params(certs = nil, verify = true) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/net/imap.rb, line 1403
    def create_ssl_params(certs = nil, verify = true)
      params = {}
      if certs
        if File.file?(certs)
          params[:ca_file] = certs
        elsif File.directory?(certs)
          params[:ca_path] = certs
        end
      end
      if verify
        params[:verify_mode] = VERIFY_PEER
      else
        params[:verify_mode] = VERIFY_NONE
      end
      return params
    end
Register or log in to add new notes.