# File lib/puppet/ssl/certificate_authority.rb, line 225
225:     def revoke(name)
226:         raise ArgumentError, "Cannot revoke certificates when the CRL is disabled" unless crl
227: 
228:         if cert = Puppet::SSL::Certificate.find(name)
229:             serial = cert.content.serial
230:         elsif ! serial = inventory.serial(name)
231:             raise ArgumentError, "Could not find a serial number for %s" % name
232:         end
233:         crl.revoke(serial, host.key.content)
234:     end