diff options
| author | Luke Kanies <luke@madstop.com> | 2008-03-09 16:37:45 -0700 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-04-15 21:34:03 -0500 |
| commit | b0811ad60527e97554e3f3e1f64d961fc72077b1 (patch) | |
| tree | b9cde431775934e2ad993ef87348edc5d19807e4 /lib/puppet/ssl/certificate.rb | |
| parent | 3970818881b1f9e108ff6b06d2bc36698a3219d9 (diff) | |
| download | puppet-b0811ad60527e97554e3f3e1f64d961fc72077b1.tar.gz puppet-b0811ad60527e97554e3f3e1f64d961fc72077b1.tar.xz puppet-b0811ad60527e97554e3f3e1f64d961fc72077b1.zip | |
The new SSL classes basically work, but they're not
functionally connected to any kind of indirection.
Diffstat (limited to 'lib/puppet/ssl/certificate.rb')
| -rw-r--r-- | lib/puppet/ssl/certificate.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/puppet/ssl/certificate.rb b/lib/puppet/ssl/certificate.rb new file mode 100644 index 000000000..7a5f97452 --- /dev/null +++ b/lib/puppet/ssl/certificate.rb @@ -0,0 +1,19 @@ +require 'puppet/ssl' + +# The class that manages all aspects of our SSL certificates -- +# private keys, public keys, requests, etc. +class Puppet::SSL::Certificate + extend Puppet::Indirector + + indirects :certificate #, :terminus_class => :file + + attr_accessor :name, :content + + def generate + raise Puppet::DevError, "Cannot generate certificates directly; they must be generated during signing" + end + + def initialize(name) + @name = name + end +end |
