Cannot download REVLib due to certificate chain

Every time I attempt to download the latest version of REVLib using Install Vendor Libraries(online), I get an error message saying that it resulted in an error. The reason given was “self signed certificate in certificate chain.” The image attached below shows the error. Creating a json file in vendordeps also does not help. Is there any way to resolve this error? I could not find any other posts about this.

You’re most likely on a school or corporate network that’s doing man-in-the-middle traffic inspection. Do the download on a different network (i.e. tethered to a phone hotspot)

Can you get to the JSON file in a web browser?

In VS Code, if you go to file → preferences → settings and search for certificates and click the box for Http: System Certificates, and then restart VS Code, does it work?

Like Fletch, I suspect MITM, and this might be less invasive then using a different network.

1 Like

Thank you, this solution worked perfectly for me!

Our school district supplied laptops install their own certificates. Presumably to facilitate man-in-the-middle monitoring of students network traffic on school equipment.

This triggers certificate errors blocking downloads of vendordep JSON files. One solution is to download them by hand and copy them into place (the vendordep directory in your project and then run build).

This also interferes with VS Code being able to authenticate with GitHub if the students try to log into github to use any of the helpful VS Code GitHub integrations. Our team uses the “GitHub Pull Requests and Issues” extension.

A fix that worked for our school laptops was to go into VS Code settings, search for “certificates” and then check the option to “Control whether CA certificates should be loaded from the OS” Then close and re-open VS Code.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.