Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

librouteros.exceptions.ConnectionError: [SSL: NO_CIPHERS_AVAILABLE] no ciphers available (_ssl.c:661) #34

Closed
shuu01 opened this issue Aug 10, 2018 · 2 comments

Comments

@shuu01
Copy link

shuu01 commented Aug 10, 2018

OpenSSL 1.1.0f 25 May 2017

python -V
Python 2.7.13

import ssl
from librouteros import connect

def main(args):

    ctx = ssl.create_default_context()
    ctx.check_hostname = False
    ctx.verify_mode = ssl.CERT_NONE
    ctx.set_ciphers('ADH')
    api = connect(username='admin', password='password', host='host.domain', 
    ssl_wrapper=ctx.wrap_socket, port=8729)

if __name__ == '__main__':
    import sys
    sys.exit(main(sys.argv))
Traceback (most recent call last):
  File "test.py", line 38, in <module>
    sys.exit(main(sys.argv))
  File "test.py", line 34, in main
    api = connect(username='admin', password='password', host='host.domain', ssl_wrapper=ctx.wrap_socket, port=8729)
  File "/home/pi/.local/lib/python2.7/site-packages/librouteros/__init__.py", line 41, in connect
    transport = create_transport(host, **arguments)
  File "/home/pi/.local/lib/python2.7/site-packages/librouteros/__init__.py", line 69, in create_transport
    raise ConnectionError(error)
librouteros.exceptions.ConnectionError: [SSL: NO_CIPHERS_AVAILABLE] no ciphers available (_ssl.c:661)

with python3 works as expected

@luqasz
Copy link
Owner

luqasz commented Aug 14, 2018

What operating system are you running ?

@shuu01
Copy link
Author

shuu01 commented Aug 14, 2018

ubuntu 18.04 and raspbian (debian 9.4), same error on both

@luqasz luqasz closed this as completed in 7c7bee7 Aug 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants