def verify_ssl(args)
      # use SSL for SSL ports unless specifically told not to
      if SSL_PORTS.include? args[:port]
        args[:use_ssl] = true unless args[:use_ssl] == false
      end
      # if verify_cert is anything but false, we will verify
      args[:verify_ssl] = args[:verify_cert] == false ? OpenSSL::SSL::VERIFY_NONE : OpenSSL::SSL::VERIFY_PEER
    end
def verify_ssl(args)
      # use SSL for SSL ports unless specifically told not to
      if SSL_PORTS.include? args[:port]
        args[:use_ssl] = true unless args[:use_ssl] == false
      end
      # if verify_cert is anything but false, we will verify
      args[:verify_ssl] = args[:verify_cert] == false ? OpenSSL::SSL::VERIFY_NONE : OpenSSL::SSL::VERIFY_PEER
    end
Get the appropriate OpenSSL::SSL constant for
 certificate verification.

 @param args[Hash] The args for #connect

 @return [Type] description_of_returned_object