# SSLCertVerificationError from MQTT to listen application

**URL:** <https://www.thethingsnetwork.org/forum/t/sslcertverificationerror-from-mqtt-to-listen-application/52067>\
**Category:** Uncategorized\
**Created:** [October 3, 2021, 1:42pm UTC](https://www.thethingsnetwork.org/forum/t/sslcertverificationerror-from-mqtt-to-listen-application/52067 "2021-10-03T13:42:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sustian2](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/sustian2/32/35697_2.png) [@Sustian2](https://www.thethingsnetwork.org/forum/u/Sustian2)\
**Post date:** [October 3, 2021, 1:42pm UTC](https://www.thethingsnetwork.org/forum/t/sslcertverificationerror-from-mqtt-to-listen-application/52067/1 "2021-10-03T13:42:23Z")

</div>

Hello Everyone,

I have a python programm to listen my application. It worded fine but just now it has a ssl problem and I don’t know how to fix that. ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/0/a/0ace71810b107244d96d1a1cd639b512b6b55ac1.png)

![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/d/4/d48b1071b21ff1f3daef12bf6eaa7b5e32f4860b.png)

Maybe someone know what should I do now?

Thanks in advance!

Han

---

<div class="post-metadata">

**Author:** ![weradis](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/weradis/32/45845_2.png) [@weradis](https://www.thethingsnetwork.org/forum/u/weradis)\
**Post date:** [October 3, 2021, 4:01pm UTC](https://www.thethingsnetwork.org/forum/t/sslcertverificationerror-from-mqtt-to-listen-application/52067/2 "2021-10-03T16:01:56Z")

</div>

One intermediate certificate for letsencrypt expired on Oct 1st just do a google to find a solution for your platform.

---

<div class="post-metadata">

**Author:** ![Sustian2](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/sustian2/32/35697_2.png) [@Sustian2](https://www.thethingsnetwork.org/forum/u/Sustian2)\
**Post date:** [October 5, 2021, 1:56pm UTC](https://www.thethingsnetwork.org/forum/t/sslcertverificationerror-from-mqtt-to-listen-application/52067/4 "2021-10-05T13:56:46Z")

</div>

Sorry, I did some research but can not solve this problem. Could you please tell me more about that?

---

<div class="post-metadata">

**Author:** ![Sustian2](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/sustian2/32/35697_2.png) [@Sustian2](https://www.thethingsnetwork.org/forum/u/Sustian2)\
**Post date:** [October 8, 2021, 6:44am UTC](https://www.thethingsnetwork.org/forum/t/sslcertverificationerror-from-mqtt-to-listen-application/52067/5 "2021-10-08T06:44:11Z")

</div>

Hello there, I could still not solve this problem. Could you maybe tell me a little bit more about that?

---

<div class="post-metadata">

**Author:** ![htdvisser](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/htdvisser/32/45312_2.png) [@htdvisser](https://www.thethingsnetwork.org/forum/u/htdvisser)\
**Post date:** [October 8, 2021, 8:50am UTC](https://www.thethingsnetwork.org/forum/t/sslcertverificationerror-from-mqtt-to-listen-application/52067/6 "2021-10-08T08:50:50Z")

</div>

I just commented on a similar topic [Python TTN library broken? - #2 by htdvisser](https://www.thethingsnetwork.org/forum/t/python-ttn-library-broken/52208/2) (but that one was about V2).

The [documentation of the paho-mqtt package](https://pypi.org/project/paho-mqtt/#tls-set) says that _By default, on Python 2.7.9+ or 3.4+, the default certification authority of the system is used._

If this is the case for you, your operating system may be outdated. Otherwise, you may want to explicitly configure an up-to-date CA certificate bundle such as [https://curl.haxx.se/ca/cacert.pem](https://curl.haxx.se/ca/cacert.pem).

---

<div class="post-metadata">

**Author:** ![Sustian2](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/sustian2/32/35697_2.png) [@Sustian2](https://www.thethingsnetwork.org/forum/u/Sustian2)\
**Post date:** [October 12, 2021, 11:20am UTC](https://www.thethingsnetwork.org/forum/t/sslcertverificationerror-from-mqtt-to-listen-application/52067/8 "2021-10-12T11:20:17Z")

</div>

Hello, could you maybe tell me how to update my CA certificate. I have no idea where I should save the xxx.pem and xxx.crt.

---

<div class="post-metadata">

**Author:** ![ninno](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/ninno/32/35697_2.png) [@ninno](https://www.thethingsnetwork.org/forum/u/ninno)\
**Post date:** [October 12, 2021, 7:44pm UTC](https://www.thethingsnetwork.org/forum/t/sslcertverificationerror-from-mqtt-to-listen-application/52067/9 "2021-10-12T19:44:03Z")

</div>

You either need to overwrite a system file (not a good idea / and the location depends on your OS).  
But you can take what is in the doc Hylke mentioned, and set a custom “ca\_certs”, for example store it in “/path/to/cacert.pem”, and adopt your “client.tls\_set” accordingly:  
client.tls\_set(ca\_certs="/path/to/cacert.pem")
