# File lib/puppet/ssl/certificate_authority.rb, line 129 129: def generate_ca_certificate 130: generate_password unless password? 131: 132: host.generate_key unless host.key 133: 134: # Create a new cert request. We do this 135: # specially, because we don't want to actually 136: # save the request anywhere. 137: request = Puppet::SSL::CertificateRequest.new(host.name) 138: request.generate(host.key) 139: 140: # Create a self-signed certificate. 141: @certificate = sign(host.name, :ca, request) 142: 143: # And make sure we initialize our CRL. 144: crl() 145: end