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