How to fix "certificate verify failed" error when using forge command line or toolkit

On 1 June 2020 a root certificate used by one of the upstream Forge dependencies unexpectedly expired.

As a result, attempts to use the command line tools or toolkit will fail with the following error:

SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)

We’ve pushed out an updated build of the toolkit which fixes this error.

Unfortunately existing installations will not be able to auto-update as the expired certificate prevents them from connecting to the update server.

As a workaround, you can either:

  1. Download and re-install the latest toolkit version from: https://trigger.io/forge/toolkit/

OR

  1. Force an update in-place by editing the appropriate file:
  • Mac: ~/Library/Trigger\ Toolkit/build-tools/forge_build.json
  • Windows: %localappdata%\Local\Trigger Toolkit\build-tools/forge_build.json
  • Linux: <path-to-toolkit>/build-tools/forge_build.json

…as follows:

{
    "main": {
        "server": "https://trigger.io/api/"
    },
    "port": 38394,
    "verify_certificates": false
}

The next time you run the command line tools or toolkit it should automatically update the toolkit and re-enable certificate verification in forge_build.json.

1 Like