Use the correct ssl key path instead of always the default

This commit is contained in:
dwelch-r7 2021-05-18 12:14:27 +01:00
parent aae474a4d0
commit aab54892b3
1 changed files with 2 additions and 2 deletions

4
msfdb
View File

@ -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