Class: Puppet::SSL::Validator::NoValidator Private

Inherits:
Puppet::SSL::Validator show all
Defined in:
lib/puppet/ssl/validator/no_validator.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Performs no SSL verification

Instance Method Summary collapse

Methods inherited from Puppet::SSL::Validator

default_validator, no_validator

Instance Method Details

#peer_certsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



13
14
15
# File 'lib/puppet/ssl/validator/no_validator.rb', line 13

def peer_certs
  []
end

#setup_connection(connection) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



9
10
11
# File 'lib/puppet/ssl/validator/no_validator.rb', line 9

def setup_connection(connection)
  connection.verify_mode = OpenSSL::SSL::VERIFY_NONE
end

#verify_errorsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



17
18
19
# File 'lib/puppet/ssl/validator/no_validator.rb', line 17

def verify_errors
  []
end