Class: Puppet::SSL::Validator::NoValidator Deprecated 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.

Deprecated.

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.


15
16
17
# File 'lib/puppet/ssl/validator/no_validator.rb', line 15

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.


11
12
13
# File 'lib/puppet/ssl/validator/no_validator.rb', line 11

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.


19
20
21
# File 'lib/puppet/ssl/validator/no_validator.rb', line 19

def verify_errors
  []
end