summaryrefslogtreecommitdiff
path: root/spec/scripts/ssl-serve.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/scripts/ssl-serve.rb')
-rw-r--r--spec/scripts/ssl-serve.rb13
1 files changed, 4 insertions, 9 deletions
diff --git a/spec/scripts/ssl-serve.rb b/spec/scripts/ssl-serve.rb
index 0a2376049b..284c58aa78 100644
--- a/spec/scripts/ssl-serve.rb
+++ b/spec/scripts/ssl-serve.rb
@@ -10,7 +10,6 @@ require "openssl"
require "webrick"
require "webrick/https"
-
$ssl = true
CHEF_SPEC_DATA = File.expand_path("../../data", __FILE__)
@@ -21,14 +20,12 @@ key = OpenSSL::PKey::RSA.new(key_text)
server_opts = {}
if $ssl
-server_opts.merge!( { :SSLEnable => true,
- :SSLVerifyClient => OpenSSL::SSL::VERIFY_NONE,
- :SSLCertificate => cert,
- :SSLPrivateKey => key })
+ server_opts.merge!( { :SSLEnable => true,
+ :SSLVerifyClient => OpenSSL::SSL::VERIFY_NONE,
+ :SSLCertificate => cert,
+ :SSLPrivateKey => key })
end
-
-
# 5 == debug, 3 == warning
LOGGER = WEBrick::Log.new(STDOUT, 5)
DEFAULT_OPTIONS = {
@@ -48,5 +45,3 @@ server = WEBrick::HTTPServer.new(webrick_opts)
trap "INT" do server.shutdown end
server.start
-
-