Adding missing `verify=False` parameter to fix the error: `(Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: EE certificate key too weak (_ssl.c:1124)')))` Also, I would suggest using HTTPS by default, otherwise you are leaking the username and password to everyone on the network.