Support absolute paths for HTTPS key and cert
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user