From 5c19ff3f9507e3cdb7b769cc23f186ff6834b463 Mon Sep 17 00:00:00 2001 From: Yannick Jadoul Date: Wed, 17 Jun 2020 19:10:00 +0200 Subject: [PATCH] Fix 'ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)' error on Windows on Travis CI --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 855b565c..c30a4ab6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,6 +35,8 @@ jobs: language: shell before_install: - choco install python3 --version 3.6.8 --no-progress -y + # Update root certificates to fix SSL error; see http://www.chawn.com/RootCerts.htm + - powershell "md C:\temp\certs; CertUtil -generateSSTFromWU C:\temp\certs\RootStore.sst; Get-ChildItem -Path C:\\temp\certs\Rootstore.sst | Import-Certificate -CertStoreLocation Cert:\\LocalMachine\\Root\\ | out-null" env: - PYTHON=C:\\Python36\\python