When running with WEBrick, auto-generate a new self-signed SSL
authorWard Vandewege <ward@curoverse.com>
Fri, 21 Mar 2014 15:36:25 +0000 (11:36 -0400)
committerWard Vandewege <ward@curoverse.com>
Fri, 21 Mar 2014 15:36:25 +0000 (11:36 -0400)
certificate for each run, rather than hardcoding a path to a certificate
and key file.

services/api/script/rails

index 88627f559de4d507b3fac87c53c4aab111a235ec..2167b0431882ef9eeef5acd733dc3b03312c6f34 100755 (executable)
@@ -21,10 +21,6 @@ module Rails
                 :config => File.expand_path("config.ru"),
                 :SSLEnable => true,
                 :SSLVerifyClient => OpenSSL::SSL::VERIFY_NONE,
-                :SSLPrivateKey => OpenSSL::PKey::RSA.new(
-                       File.open("config/api.clinicalfuture.com.key.pem").read),
-                :SSLCertificate => OpenSSL::X509::Certificate.new(
-                       File.open("config/api.clinicalfuture.com.crt.pem").read),
                 :SSLCertName => [["CN", WEBrick::Utils::getservername]]
             })
         end