You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ python2.7 pygop/gopcli.py -r 4 -s 0
Failed to reach the lighting server. Check to make sure you're connected to the same network as the gateway and it's online.
Reason: [SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:727)
Failed to setRoomLevelByRid
Fix (...at least that worked):
diff--gita/pygop.pyb/pygop.pyindex50833f2..ce74d3a100644---a/pygop.py+++b/pygop.py
@@ -231,7+231,10 @@ classpygop(object):
# handle any connection errorstry:
-response=urllib2.urlopen(req)
+# https://askubuntu.com/questions/1231844/ssl-sslerror-ssl-dh-key-too-small-dh-key-too-small-ssl-c1108 & https://docs
.python.org/2/library/urllib2.html+context=ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
+context.set_ciphers('DEFAULT@SECLEVEL=1')
+response=urllib2.urlopen(req,context=context)
excepturllib2.URLErrorase:
ifhasattr(e, 'reason'):
print'Failed to reach the lighting server. Check to make ' \
Error observed
Fix (...at least that worked):
After fix:
This fix is to be local to pygop rather than overriding global (e.g. https://askubuntu.com/questions/1233186/ubuntu-20-04-how-to-set-lower-ssl-security-level )
The text was updated successfully, but these errors were encountered: