mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
openvpn: Remove opinion on which curve to use
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
3676fd1a87
commit
030e6ce98d
3 files changed
+5
-8
No files matched your search
@@ -36,7 +36,7 @@ def fixture_call_action(capsys, keys_directory):
|
||||
|
||||
def _call_action(module_name, args, **kwargs):
|
||||
actions.DH_PARAMS = f'{keys_directory}/pki/dh.pem'
|
||||
actions.EC_PARAMS = f'{keys_directory}/pki/ecparams/secp521r1.pem'
|
||||
actions.EC_PARAMS_DIR = f'{keys_directory}/pki/ecparams'
|
||||
with patch('argparse._sys.argv', [module_name] + args):
|
||||
actions.main()
|
||||
captured = capsys.readouterr()
|
||||
|
||||
@@ -47,7 +47,7 @@ def test_is_setup_with_ecc(keys_directory, call_action):
|
||||
"""is_setup should work with RSA configuration."""
|
||||
with patch('plinth.actions.superuser_run', call_action):
|
||||
(keys_directory / 'pki' / 'ecparams').mkdir(parents=True)
|
||||
ec_params_file = keys_directory / 'pki' / 'ecparams' / 'secp521r1.pem'
|
||||
ec_params_file = keys_directory / 'pki' / 'ecparams' / 'somecurve.pem'
|
||||
ec_params_file.write_text('some content')
|
||||
assert openvpn.is_setup()
|
||||
os.remove(ec_params_file)
|
||||
Reference in new issue
Block a user