diff --git a/changelogs/fragments/34-api-ciphers.yml b/changelogs/fragments/34-api-ciphers.yml new file mode 100644 index 00000000..cf722b33 --- /dev/null +++ b/changelogs/fragments/34-api-ciphers.yml @@ -0,0 +1,2 @@ +bugfixes: +- "api - when using TLS/SSL, remove explicit cipher configuration to insecure values, which also makes it impossible to connect to newer RouterOS versions (https://github.com/ansible-collections/community.routeros/pull/34)." diff --git a/plugins/modules/api.py b/plugins/modules/api.py index bb5d7a86..9ad6031f 100644 --- a/plugins/modules/api.py +++ b/plugins/modules/api.py @@ -451,7 +451,6 @@ def ros_api_connect(self, username, password, host, port, use_ssl): conn_status["connection"]["port"] = port ctx = ssl.create_default_context() ctx.check_hostname = False - ctx.set_ciphers('ADH:@SECLEVEL=0') api = connect(username=username, password=password, host=host,