SSL certificate verify failed

It doesn’t appear to be a problem on my local Windows 8.1 dev machine but I am getting a SSL_CERTIFICATE_FAILED error during builds on Windows…

https://travis-ci.com/veganaize/graal/jobs/270739192

TL;DR

Error reading from https://search.maven.org/remotecontent?filepath=org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)>

WARNING: ** If behind a firewall without direct internet access, use the http_proxy environment variable (e.g. "env http_proxy=proxy.company.com:80 mx ...") or download manually with a web browser.

The command "mx build" failed and exited with 1 during .

AFAICS you are downloading JDK yourself, from some 3rd-party source. So it’s your job to make sure it has the necessary SSL root certificate bundle. Maybe you’ll need to consult that 3rd party on how their JDK packaging is supposed to be used.

As a workaround while you are figuring that out, you can instruct Maven to use HTTP instead of HTTPS as per https://stackoverflow.com/questions/21252800/how-to-tell-maven-to-disregard-ssl-errors-and-trusting-all-certs/46665598#46665598.

1 Like

Turns out it was actually a Python issue. This solved it for me…

$ cd $HOME
$ wget --quiet https://curl.haxx.se/ca/cacert.pem
$ export SSL_CERT_FILE=$HOME/cacert.pem