# File lib/puppet/application/cert.rb, line 66
66:   def setup
67:     exit(Puppet.settings.print_configs ? 0 : 1) if Puppet.settings.print_configs?
68: 
69:     Puppet::Util::Log.newdestination :console
70: 
71:     if [:generate, :destroy].include? @cert_mode
72:       Puppet::SSL::Host.ca_location = :local
73:     else
74:       Puppet::SSL::Host.ca_location = :only
75:     end
76: 
77:     begin
78:       @ca = Puppet::SSL::CertificateAuthority.new
79:     rescue => detail
80:       puts detail.backtrace if Puppet[:trace]
81:       puts detail.to_s
82:       exit(23)
83:     end
84:   end