# File lib/puppet/ssl/host.rb, line 192 192: def generate 193: generate_key unless key 194: generate_certificate_request unless certificate_request 195: 196: # If we can get a CA instance, then we're a valid CA, and we 197: # should use it to sign our request; else, just try to read 198: # the cert. 199: if ! certificate() and ca = Puppet::SSL::CertificateAuthority.instance 200: ca.sign(self.name) 201: end 202: end