diff options
| author | Luke Kanies <luke@madstop.com> | 2008-04-18 10:49:58 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-04-18 10:49:58 -0500 |
| commit | 92a7d76e8a160ba1ddb684d52eab6639cf801cb7 (patch) | |
| tree | 0c82d00456eae10d6208c0cce93a4c2092568913 /spec/integration/ssl | |
| parent | fb56deae3488e5d97e10e38cba98393a5a8f8414 (diff) | |
| download | puppet-92a7d76e8a160ba1ddb684d52eab6639cf801cb7.tar.gz puppet-92a7d76e8a160ba1ddb684d52eab6639cf801cb7.tar.xz puppet-92a7d76e8a160ba1ddb684d52eab6639cf801cb7.zip | |
All SSL terminus classes now force the CA information into the right place.
Without this, then you could end up duplicating your CA
key into the normal directory depending on how caching
was set up.
Again, this design aspect isn't the most straightforward,
but at least it's functional now.
Diffstat (limited to 'spec/integration/ssl')
| -rwxr-xr-x | spec/integration/ssl/host.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/integration/ssl/host.rb b/spec/integration/ssl/host.rb index 63d7aca5b..e8fd89364 100755 --- a/spec/integration/ssl/host.rb +++ b/spec/integration/ssl/host.rb @@ -67,4 +67,14 @@ describe Puppet::SSL::Host do File.read(File.join(Puppet.settings[:requestdir], "luke.madstop.com.pem")).should == @host.certificate_request.to_s end end + + describe "when the CA host" do + it "should never store its key in the :privatekeydir" do + Puppet.settings.use(:main, :ssl, :ca) + @ca = Puppet::SSL::Host.new(Puppet::SSL::Host.ca_name) + @ca.generate_key + + FileTest.should_not be_exist(File.join(Puppet[:privatekeydir], "ca.pem")) + end + end end |
