diff options
author | Luke Kanies <luke@madstop.com> | 2007-11-27 21:20:26 -0600 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2007-11-27 21:20:26 -0600 |
commit | 1b2142b7dd9ef7bea2c4591e512feef230ecc072 (patch) | |
tree | a12c7904154c8dc129df9a24d04e059407e03f68 /lib | |
parent | c7cd7ecc3b35351de615e369d7d1b91651427bf2 (diff) | |
download | puppet-1b2142b7dd9ef7bea2c4591e512feef230ecc072.tar.gz puppet-1b2142b7dd9ef7bea2c4591e512feef230ecc072.tar.xz puppet-1b2142b7dd9ef7bea2c4591e512feef230ecc072.zip |
Applying patches from #823 by wyvern
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/sslcertificates/ca.rb | 10 |
1 files changed, 10 insertions, 0 deletions
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. |