diff --git a/msfdb b/msfdb index 7ea13d1b4d..13ed069692 100755 --- a/msfdb +++ b/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