method

verify_certificate

ruby latest stable - Class: Gem::Request
verify_certificate(store_context)
public

No documentation available.

# File lib/rubygems/request.rb, line 89
  def self.verify_certificate store_context
    depth  = store_context.error_depth
    error  = store_context.error_string
    number = store_context.error
    cert   = store_context.current_cert

    ui.alert_error "SSL verification error at depth #{depth}: #{error} (#{number})"

    extra_message = verify_certificate_message number, cert

    ui.alert_error extra_message if extra_message
  end