From aab54892b3472bf0bcdb0865100083a8cc558bfc Mon Sep 17 00:00:00 2001 From: dwelch-r7 Date: Tue, 18 May 2021 12:14:27 +0100 Subject: [PATCH] Use the correct ssl key path instead of always the default --- msfdb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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