# Cannot run Travis with Nix 2.2 or 2.3

**URL:** <https://travis-ci.community/t/cannot-run-travis-with-nix-2-2-or-2-3/12203>\
**Category:** Nix\
**Created:** [October 1, 2021, 6:13pm UTC](https://travis-ci.community/t/cannot-run-travis-with-nix-2-2-or-2-3/12203 "2021-10-01T18:13:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zimmi48](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/zimmi48/32/7229_2.png) [@Zimmi48](https://travis-ci.community/u/Zimmi48)\
**Post date:** [October 1, 2021, 6:13pm UTC](https://travis-ci.community/t/cannot-run-travis-with-nix-2-2-or-2-3/12203/1 "2021-10-01T18:13:43Z")

</div>

The documentation for the `nix:` version specifier says:

> Note: This option supports all Nix releases, starting with version 1.11.16.

But I attempted today to use Travis to test a Nix build with Nix 2.2 and it failed with the following error (also fails in the same way with Nix 2.3, 2.3.2, 2.3.3 and 2.3.4):

```auto
curl: (60) server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

```

Note that I confirmed it works fine with Nix 2.3.5 and 2.3.7.

cc @domenkozar @matthewbauer

---

<div class="post-metadata">

**Author:** ![stronk7](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/stronk7/32/3068_2.png) [@stronk7](https://travis-ci.community/u/stronk7)\
**Post date:** [October 3, 2021, 9:25am UTC](https://travis-ci.community/t/cannot-run-travis-with-nix-2-2-or-2-3/12203/2 "2021-10-03T09:25:01Z")

</div>

Hi,

I’m facing the same error with various builds that use to fetch (git) stuff from several servers.

Just guessing (given the dates) if the problem is related with [DST Root CA X3 Expiration (September 2021) - Let's Encrypt](https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/)

I had the same problem in some own computers (xenial and focal) and had to perform an apt update & upgrade to get newer openssl & certificates-ca packages. After that, everything was back to work.

Maybe the travis environments don’t have those packages updated? I’ve tried here rerunning some jobs with xenial, bionic and focal and all them are failing with the same error.

Just a theory, but the date where errors began is a good coincidence.

Ciao 🙂

---

<div class="post-metadata">

**Author:** ![f0rtis](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/f0rtis/32/6045_2.png) [@f0rtis](https://travis-ci.community/u/f0rtis)\
**Post date:** [October 5, 2021, 1:42pm UTC](https://travis-ci.community/t/cannot-run-travis-with-nix-2-2-or-2-3/12203/3 "2021-10-05T13:42:18Z")

</div>

I have the same issue here with my builds. It’s strange that 4 days passed and it’s still not fixed by Travis team.  
UPD: Travis support provided following workaround for .travis.yml file until it’s fixed:

```auto
before_install:
  - sudo apt update && sudo apt install libgnutls-openssl27 libgnutls30

```
