Support absolute paths for HTTPS key and cert

This commit is contained in:
Till Maas
2014-09-26 11:10:51 +02:00
parent d4736e071f
commit c35286da59

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