class Puppet::Forge::Errors::SSLVerifyError

This exception is raised when there is an SSL verification error when communicating with the forge.

Public Class Methods

new(options) click to toggle source

@option options [String] :uri The URI that failed @option options [String] :original the original exception

Calls superclass method Puppet::Error::new
   # File lib/puppet/forge/errors.rb
25 def initialize(options)
26   @uri     = options[:uri]
27   original = options[:original]
28 
29   super(_("Unable to verify the SSL certificate at %{uri}") % { uri: @uri }, original)
30 end

Public Instance Methods

multiline() click to toggle source

Return a multiline version of the error message

@return [String] the multiline version of the error message

   # File lib/puppet/forge/errors.rb
35 def multiline
36   message = []
37   message << _('Could not connect via HTTPS to %{uri}') % { uri: @uri }
38   message << _('  Unable to verify the SSL certificate')
39   message << _('    The certificate may not be signed by a valid CA')
40   message << _('    The CA bundle included with OpenSSL may not be valid or up to date')
41   message.join("\n")
42 end