mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-21 17:39:04 +02:00
Disable use of deprecated Ciphers (#34)
* Disable use of depricated Ciphers Old ciphers shouldn't be used. Devices that use newer ciphers couldn't be reached as the cipher was locked to sslv3. * chore: add changelog fragment
This commit is contained in:
parent
1913a0d4bf
commit
b45baaa158
2 changed files with 2 additions and 1 deletions
2
changelogs/fragments/34-api-ciphers.yml
Normal file
2
changelogs/fragments/34-api-ciphers.yml
Normal file
|
@ -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)."
|
|
@ -451,7 +451,6 @@ class ROS_api_module:
|
||||||
conn_status["connection"]["port"] = port
|
conn_status["connection"]["port"] = port
|
||||||
ctx = ssl.create_default_context()
|
ctx = ssl.create_default_context()
|
||||||
ctx.check_hostname = False
|
ctx.check_hostname = False
|
||||||
ctx.set_ciphers('ADH:@SECLEVEL=0')
|
|
||||||
api = connect(username=username,
|
api = connect(username=username,
|
||||||
password=password,
|
password=password,
|
||||||
host=host,
|
host=host,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue