summaryrefslogtreecommitdiffstats
path: root/lib/puppet/network/http_server
diff options
context:
space:
mode:
authorLuke Kanies <luke@reductivelabs.com>2009-12-21 16:27:34 -0800
committerLuke Kanies <luke@reductivelabs.com>2009-12-21 16:27:34 -0800
commitd921c459c14f7460fb209dea3b9194c91fee9fd1 (patch)
tree44783bcb3377b25da9e9283922617e06d471f2ad /lib/puppet/network/http_server
parent4226e018d7c8e2d52ef59edf37d3a320aa823be0 (diff)
parent740fd6b301af89ab3aad89bca183ad1fcdc24ac4 (diff)
Merge branch 'merge'
Diffstat (limited to 'lib/puppet/network/http_server')
-rw-r--r--lib/puppet/network/http_server/webrick.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/puppet/network/http_server/webrick.rb b/lib/puppet/network/http_server/webrick.rb
index a863d3a20..2dae9ccd8 100644
--- a/lib/puppet/network/http_server/webrick.rb
+++ b/lib/puppet/network/http_server/webrick.rb
@@ -21,13 +21,10 @@ module Puppet
# with them, with flags appropriate for checking client
# certificates for revocation
def x509store
- if Puppet[:cacrl] == 'false'
+ unless File.exist?(Puppet[:cacrl])
# No CRL, no store needed
return nil
end
- unless File.exist?(Puppet[:cacrl])
- raise Puppet::Error, "Could not find CRL; set 'cacrl' to 'false' to disable CRL usage"
- end
crl = OpenSSL::X509::CRL.new(File.read(Puppet[:cacrl]))
store = OpenSSL::X509::Store.new
store.purpose = OpenSSL::X509::PURPOSE_ANY