Exception: Puppet::Forge::Errors::SSLVerifyError
- Inherits:
-
ForgeError
- Object
- RuntimeError
- Error
- ForgeError
- Puppet::Forge::Errors::SSLVerifyError
- Defined in:
- lib/puppet/forge/errors.rb
Overview
This exception is raised when there is an SSL verification error when communicating with the forge.
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(options) ⇒ SSLVerifyError
constructor
A new instance of SSLVerifyError.
-
#multiline ⇒ String
Return a multiline version of the error message.
Constructor Details
#initialize(options) ⇒ SSLVerifyError
Returns a new instance of SSLVerifyError.
24 25 26 27 28 29 |
# File 'lib/puppet/forge/errors.rb', line 24 def initialize() @uri = [:uri] original = [:original] super("Unable to verify the SSL certificate at #{@uri}", original) end |
Instance Method Details
#multiline ⇒ String
Return a multiline version of the error message
34 35 36 37 38 39 40 41 |
# File 'lib/puppet/forge/errors.rb', line 34 def multiline "Could not connect via HTTPS to \#{@uri}\n Unable to verify the SSL certificate\nThe certificate may not be signed by a valid CA\nThe CA bundle included with OpenSSL may not be valid or up to date\n EOS\nend\n".chomp |