Use the correct ssl key path instead of always the default
This commit is contained in:
parent
aae474a4d0
commit
aab54892b3
4
msfdb
4
msfdb
|
@ -432,9 +432,9 @@ def start_web_service(expect_auth: true)
|
|||
|
||||
print 'Attempting to start MSF web service...'
|
||||
|
||||
unless File.file?(@ws_ssl_key_default)
|
||||
unless File.file?(@options[:ssl_key])
|
||||
puts "#{'failed'.red.bold}"
|
||||
print_error "The SSL Key needed for the webservice to connect to the database could not be found at #{@ws_ssl_key_default}."
|
||||
print_error "The SSL Key needed for the webservice to connect to the database could not be found at #{@options[:ssl_key]}."
|
||||
print_error 'Has the webservice been initialized with "msfdb init" or "msfdb init --component webservice"?'
|
||||
return false
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue