We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8835dae commit 76143bdCopy full SHA for 76143bd
lib/msf/core/db_manager/http/http_db_manager_service.rb
@@ -16,6 +16,13 @@ def start(opts)
16
17
require_environment!(parsed_options)
18
19
+ ssl_opts = {}
20
+ ssl_opts[:private_key_file] = '/Users/jbarnett/rapid7/goliath/key.pem'
21
+ ssl_opts[:cert_chain_file] = '/Users/jbarnett/rapid7/goliath/cert.pem'
22
+ ssl_opts[:verify_peer] = false
23
+ opts[:ssl] = true
24
+ opts[:ssl_opts] = ssl_opts
25
+
26
init_db
27
start_http_server(opts)
28
end
@@ -33,6 +40,10 @@ def start_http_server(opts)
33
40
}
34
41
35
42
43
+ if opts[:ssl] && opts[:ssl] = true
44
+ server.ssl = true
45
+ server.ssl_options = opts[:ssl_opts]
46
+ end
36
47
server.threaded = true
37
48
38
49
0 commit comments