NickWaterton / Roomba980-Python

Python program and library to control iRobot Roomba 980 Vacuum Cleaner
MIT License
377 stars 106 forks source link

SSL: unsafe legacy renegotiation disabled #113

Closed lipoja closed 1 year ago

lipoja commented 1 year ago

Hello, running on Fedora 37. Tested with Python 3.11 and Python 3.8

$ python3.8 password.py 
2022-11-26 21:01:23 INFO [Roomba.Password] Using Password version 2.1
2022-11-26 21:01:23 INFO [Roomba.Password] reading/writing info from config file ./config.ini
2022-11-26 21:01:23 INFO [Roomba.Password] waiting on port: 5678 for data
2022-11-26 21:01:23 INFO [Roomba.Password] Robot at IP: 192.168.1.11 Data: {
...
}
2022-11-26 20:56:03 INFO [Roomba.Password] To add/update Your robot details,make sure your robot (Roomba) at IP 192.168.1.11 is on the Home Base and powered on (green lights on). Then press and hold the HOME button on your robot until it plays a series of tones (about 2 seconds). Release the button and your robot will flash WIFI light.
Press <Enter> to continue...
s<Enter> to skip configuring this robot: 
2022-11-26 20:57:16 INFO [Roomba.Password] Roomba (Roomba) IP address is: 192.168.1.11
/home/jan/Projects/Roomba980-Python/roomba/./password.py:193: DeprecationWarning: ssl.SSLContext() without protocol argument is deprecated.
  context = ssl.SSLContext()
/home/jan/Projects/Roomba980-Python/roomba/./password.py:193: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
  context = ssl.SSLContext()
2022-11-26 20:57:16 ERROR [Roomba.Password] Connection Error (for 192.168.1.11): [SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:992)
2022-11-26 20:57:16 ERROR [Roomba.Password] Unable to get password from roomba
2022-11-26 20:57:16 ERROR [Roomba.Password] Error getting password for robot Roomba at ip192.168.1.11, received 0 bytes. Follow the instructions and try again.

Thank you, Jan

NickWaterton commented 1 year ago

I'm using python 3.8.10 and I don't get this warning. Anything above python 3.8 is not tested/supported.

anyway, just use getcloudpassword.py

lipoja commented 1 year ago

Thank you! getcloudpassword.py worked