From 1b2142b7dd9ef7bea2c4591e512feef230ecc072 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Tue, 27 Nov 2007 21:20:26 -0600 Subject: Applying patches from #823 by wyvern --- lib/puppet/sslcertificates/ca.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib') diff --git a/lib/puppet/sslcertificates/ca.rb b/lib/puppet/sslcertificates/ca.rb index e1b5f2386..161eb11b3 100644 --- a/lib/puppet/sslcertificates/ca.rb +++ b/lib/puppet/sslcertificates/ca.rb @@ -142,6 +142,16 @@ class Puppet::SSLCertificates::CA } end + # List signed certificates. This returns a list of hostnames, not actual + # files -- the names can be converted to full paths with host2csrfile. + def list_signed + return Dir.entries(Puppet[:signeddir]).find_all { |file| + file =~ /\.pem$/ + }.collect { |file| + file.sub(/\.pem$/, '') + } + end + # Create the root certificate. def mkrootcert # Make the root cert's name the FQDN of the host running the CA. -- cgit