-
Notifications
You must be signed in to change notification settings - Fork 104
Certificate expired error when trying to clean #62
Comments
Can you tell what host is involved? I think the first thing to do is to try to connect to the host in question with some other tool and see if the certificate really is expired. |
Thanks for the response. I did this by editing sleekxmp to also output the URL in question:
in file Here's the output:
So the url in question is I tried numerous calls like |
One way you could narrow it down would be to use Wireshark to capture traffic from your machine. That would let you see what's happening when; I think the certificate will be sent in the clear. |
Same for me. I'm in the US, connecting to the US server. The cert was signed in Nov xx 2017 and expired Jan 20 2019. I actually just modified the python to print the start/end dates of the cert. I've just been working on this, so I'm not sure who the certificate issuer is yet. I am set up to capture, so please let me know if there is anything I can provide to help out. I'll keep working on it. |
So it's up to Ecovacs to renew the certificate. For sucks as a 3rd party library the only option to get around this, is to not validate the certificate on connection. This would lower the security, but make the library work again. |
Ok, looks like the bad cert is on pyasn1. Currently testing with pyasn1 0.4.5. I'll try something else after breakfast, but here is the output from the debug which is just a local cert validation, and below that is the TLS server response from ecovacs. validity=Validity: notAfter=Time: |
Ah, that explains why I'm not having the problem. A warning I get when I run sucks:
So a temporary workaround is perhaps to uninstall that module. If we're sure this is a problem with the Ecovacs certificate, I can try reporting this to them as a problem. |
It is definitely the sleekxmpp cert that is expired, so removing pyasn1 & _modules to not verify is the way to go as a workaround. I think you can close this most likely. sleekxmpp.xmlstream.cert WARNING Could not find pyasn1 and pyasn1_modules. SSL certificate COULD NOT BE VERIFIED. Here is my vanilla Python 3.7 install with sucks for reference: |
Thanks, @ecpunk. When you say it's the sleekxmpp certificate, you mean that it's not an Ecovacs certificate, but rather something in the sleekxmpp library? |
This is surprising I first saw this error with this golang library https://github.com/skburgart/go-vacbot that is basically a port of sucks. Since sucks had the same issue, I thought this was related to the backend.
So taking this into account I would say that it's not relate to python or sucks. Do we have clear evidence on that matter? |
This fork of SleekXMPP disables certificate validation to work around wpietri#62 and wpietri#45 This fix should be seen as a temporary hack until we figure out a long term solution.
Version of sucks built directly from master branch:
Config:
Error messages?
Is this a known problem? Is it restricted to just the European or German endpoint? Is there a workaround?
The text was updated successfully, but these errors were encountered: