# Certificate verify failed

**URL:** <https://discourse.mopidy.com/t/certificate-verify-failed/3668>\
**Category:** Misc\
**Created:** [December 31, 2019, 12:41am UTC](https://discourse.mopidy.com/t/certificate-verify-failed/3668 "2019-12-31T00:41:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjok](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jjok/32/448_2.png) [@jjok](https://discourse.mopidy.com/u/jjok)\
**Post date:** [December 31, 2019, 12:41am UTC](https://discourse.mopidy.com/t/certificate-verify-failed/3668/1 "2019-12-31T00:41:05Z")

</div>

I’ve been trying to upgrade my Docker image with some newer packages (not Python 3 yet). I’m building on top of `balenalib/rpi-raspbian` and I’ve had to add a few extra packages that I didn’t need to install with the old `resin/rpi-raspbian` image. I’ve got the build completing successfully, but I get this error when I start Mopidy.

```
ERROR Error during Last.fm setup: NetworkError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)

```

What am I missing? I’ve got the latest `apt install ca-certificates` and `pip install certifi`.

Thanks.

---

<div class="post-metadata">

**Author:** ![jjok](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jjok/32/448_2.png) [@jjok](https://discourse.mopidy.com/u/jjok)\
**Post date:** [February 6, 2020, 12:49am UTC](https://discourse.mopidy.com/t/certificate-verify-failed/3668/2 "2020-02-06T00:49:04Z")

</div>

I worked it out. You have to run:

```auto
update-ca-certificates --fresh

```
