# File lib/puppet/ssl/certificate_authority.rb, line 206
206:   def revoke(name)
207:     raise ArgumentError, "Cannot revoke certificates when the CRL is disabled" unless crl
208: 
209:     if cert = Puppet::SSL::Certificate.find(name)
210:       serial = cert.content.serial
211:     elsif ! serial = inventory.serial(name)
212:       raise ArgumentError, "Could not find a serial number for #{name}"
213:     end
214:     crl.revoke(serial, host.key.content)
215:   end