Method: Puppet::SSL::Key#read

Defined in:
lib/puppet/ssl/key.rb

#read(path) ⇒ Object

Optionally support specifying a password file.



49
50
51
52
53
54
# File 'lib/puppet/ssl/key.rb', line 49

def read(path)
  return super unless password_file

  # RFC 1421 states PEM is 7-bit ASCII https://tools.ietf.org/html/rfc1421
  @content = wrapped_class.new(Puppet::FileSystem.read(path, :encoding => Encoding::ASCII), password)
end