[WebUI][Daemon] Enhance TLS Security
This applies the following for both WebUI and Daemon: 1. Raised minimal TLS version to TLSv1.2 2. Added specific cipher suite list 3. Added support for ECDSA auth keys 4. Added support for ECDHE key exchange algorithm We disabled the ability to perform TLS/SSL renegotiation and therefore will prevent the clients from renegotiating, which can be exploit for DoS attacks. New security tests now will be skipped when running `pydef` and `trial` testenvs. To run the test, use the testenv `security` or add the environment variable `SECURITY_TESTS` before running the tests. Also should only run when adding to the commit message the string `SECURITY_TEST`.
This commit is contained in:
6
tox.ini
6
tox.ini
@ -52,7 +52,11 @@ log_cli_level = CRITICAL
|
||||
[testenv:pydef]
|
||||
commands =
|
||||
python -c "import libtorrent as lt; print(lt.__version__)"
|
||||
pytest -v --basetemp=_pytest_temp -s -m "not (todo or gtkui)" deluge/tests
|
||||
pytest -v --basetemp=_pytest_temp -s -m "not (todo or gtkui or security)" deluge/tests
|
||||
|
||||
[testenv:security]
|
||||
setenv = SECURITY_TESTS = True
|
||||
commands = pytest -v --basetemp=_pytest_temp -s -m "security" deluge/tests/
|
||||
|
||||
[testenv:pygtkui]
|
||||
commands = pytest -v --basetemp=_pytest_temp -s -m "gtkui" deluge/tests
|
||||
|
Reference in New Issue
Block a user