diff options
author | Luke Kanies <luke@madstop.com> | 2008-08-04 11:01:34 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-08-04 11:01:34 -0500 |
commit | 6c80e0ff6ae5e69bccd46bb2bd6261b78626f01e (patch) | |
tree | 3d98a73e7dfa24f084856f44735a808a3151019f /lib/puppet | |
parent | c464bf21676c907642be3ad2c71b941318469325 (diff) | |
download | puppet-6c80e0ff6ae5e69bccd46bb2bd6261b78626f01e.tar.gz puppet-6c80e0ff6ae5e69bccd46bb2bd6261b78626f01e.tar.xz puppet-6c80e0ff6ae5e69bccd46bb2bd6261b78626f01e.zip |
Making all certificates only support the plaintext format.
None of them actually support yaml or marshal by default,
and plaintext is easiest anyway.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/ssl/certificate.rb | 6 | ||||
-rw-r--r-- | lib/puppet/ssl/certificate_request.rb | 6 | ||||
-rw-r--r-- | lib/puppet/ssl/certificate_revocation_list.rb | 6 | ||||
-rw-r--r-- | lib/puppet/ssl/key.rb | 6 |
4 files changed, 24 insertions, 0 deletions
diff --git a/lib/puppet/ssl/certificate.rb b/lib/puppet/ssl/certificate.rb index 16af85d06..82f251d9c 100644 --- a/lib/puppet/ssl/certificate.rb +++ b/lib/puppet/ssl/certificate.rb @@ -12,6 +12,12 @@ class Puppet::SSL::Certificate < Puppet::SSL::Base extend Puppet::Indirector indirects :certificate, :terminus_class => :file + # Because of how the format handler class is included, this + # can't be in the base class. + def self.supported_formats + [:str] + end + def expiration return nil unless content return content.not_after diff --git a/lib/puppet/ssl/certificate_request.rb b/lib/puppet/ssl/certificate_request.rb index 34cae5a3e..6a55b2bd1 100644 --- a/lib/puppet/ssl/certificate_request.rb +++ b/lib/puppet/ssl/certificate_request.rb @@ -7,6 +7,12 @@ class Puppet::SSL::CertificateRequest < Puppet::SSL::Base extend Puppet::Indirector indirects :certificate_request, :terminus_class => :file + # Because of how the format handler class is included, this + # can't be in the base class. + def self.supported_formats + [:str] + end + # How to create a certificate request with our system defaults. def generate(key) Puppet.info "Creating a new SSL certificate request for %s" % name diff --git a/lib/puppet/ssl/certificate_revocation_list.rb b/lib/puppet/ssl/certificate_revocation_list.rb index 3029c14a4..3e48ddba3 100644 --- a/lib/puppet/ssl/certificate_revocation_list.rb +++ b/lib/puppet/ssl/certificate_revocation_list.rb @@ -8,6 +8,12 @@ class Puppet::SSL::CertificateRevocationList < Puppet::SSL::Base extend Puppet::Indirector indirects :certificate_revocation_list, :terminus_class => :file + # Because of how the format handler class is included, this + # can't be in the base class. + def self.supported_formats + [:str] + end + # Knows how to create a CRL with our system defaults. def generate(cert, cakey) Puppet.info "Creating a new certificate revocation list" diff --git a/lib/puppet/ssl/key.rb b/lib/puppet/ssl/key.rb index a1d436090..359455b06 100644 --- a/lib/puppet/ssl/key.rb +++ b/lib/puppet/ssl/key.rb @@ -8,6 +8,12 @@ class Puppet::SSL::Key < Puppet::SSL::Base extend Puppet::Indirector indirects :key, :terminus_class => :file + # Because of how the format handler class is included, this + # can't be in the base class. + def self.supported_formats + [:str] + end + attr_accessor :password_file # Knows how to create keys with our system defaults. |