class Puppet::SSL::Configuration

Puppet::SSL::Configuration is intended to separate out the following concerns:

Public Class Methods

new(localcacert, options={}) click to toggle source
# File lib/puppet/ssl/configuration.rb, line 10
def initialize(localcacert, options={})
  if (options[:ca_chain_file] and not options[:ca_auth_file])
    raise ArgumentError, "The CA auth chain is required if the chain file is provided"
  end
  @localcacert = localcacert
  @ca_chain_file = options[:ca_chain_file]
  @ca_auth_file = options[:ca_auth_file]
end

Public Instance Methods

ca_auth_file() click to toggle source

The #ca_auth_file method is intended to return the PEM bundle of CA certs used to authenticate peer connections.

# File lib/puppet/ssl/configuration.rb, line 27
def ca_auth_file
  @ca_auth_file || @localcacert
end
ca_chain_file() click to toggle source

The #ca_chain_file method is intended to return the PEM bundle of CA certs establishing trust but not used for peer authentication.

# File lib/puppet/ssl/configuration.rb, line 21
def ca_chain_file
  @ca_chain_file || ca_auth_file
end