Merge pull request #1054 from tyll/abspath

Support absolute paths for HTTPS key and cert
This commit is contained in:
Brendan Coles
2014-09-27 11:10:28 +10:00

View File

@@ -114,8 +114,8 @@ module BeEF
print_more "Upgrade OpenSSL to version 1.0.1g or newer." print_more "Upgrade OpenSSL to version 1.0.1g or newer."
end end
@http_server.ssl = true @http_server.ssl = true
@http_server.ssl_options = {:private_key_file => $root_dir + "/" + @configuration.get('beef.http.https.key'), @http_server.ssl_options = {:private_key_file => File.expand_path(@configuration.get('beef.http.https.key'), $root_dir),
:cert_chain_file => $root_dir + "/" + @configuration.get('beef.http.https.cert'), :cert_chain_file => File.expand_path(@configuration.get('beef.http.https.cert'), $root_dir),
:verify_peer => false} :verify_peer => false}
end end
end end