Hello,
I am developing a gateway application on an embedded Linux. Previously, I was using python 2.7.3 and had put TLS as optional in the platform. With this configuration, I could connect and publish data. But I would like to use TLS, so I updated the python to 2.7.9 as recommended in the documentation. My openSSL version is OpenSSL 1.0.1p 9 Jul 2015. Now when I try to connect, I get the error of SSL: CERTIFICATE_VERIFY_FAILED even when I put TLS as optional.
Anyone have an idea in what can I do to solve this?
Thanks in advance
Best Regards
Gustavo
what library do you use to connect? Is this the one: https://github.com/ibm-watson-iot/iot-python
Hello Idani,
Yes, it is the exactly library I'm using.
Answer by idani (639) | Feb 28, 2018 at 01:02 AM
@gustavocarlos It could be caused by the python version. Can you run your program with below line:
PYTHONHTTPSVERIFY=0 python /path/to/python-program.py
Or set
[https] verify=disable
in /etc/python/cert-verification.cfg