# File lib/puppet/sslcertificates/ca.rb, line 261
261:   def storeclientcsr(csr)
262:     host = thing2name(csr)
263: 
264:     csrfile = host2csrfile(host)
265:     raise Puppet::Error, "Certificate request for #{host} already exists" if File.exists?(csrfile)
266: 
267:     Puppet.settings.writesub(:csrdir, csrfile) do |f|
268:       f.print csr.to_pem
269:     end
270:   end