Environment Variables / Additional accepted Certificate Authorities while running Unit Tests

Issue #2452 resolved
Robert Hennig created an issue

Hi,

when I try to run a Unit Test I get the following error “unable to find valid certification path to requested target” - see attached debug log file from the IDE.

I’m working for a bigger company where a security tool named ZScaler is manadatory. Basically this tool behaves like a man-in-the-middle attack in order to inspect SSL encrypted traffic. Therefore all tools (Browsers, command line clients, Tools) have to accept the ZScaler CA as a valid Certificate Authority. This also is required when using the Salesforce Cli.

I’ve added a System Environment Variable named “NODE_EXTRA_CA_CERTS” to Windows which points to the additional certificate file. This works fine on the command line where I’m able to run unit tests and other commands. But for the IDE / Illuminated Cloud this setting does not seem to be recognized. I also do not see any possibility to configure such an environment variable (for other languages like Java this is possible within the run configurations).

Is there any possibility to configure this environment variable for Illuminated Cloud?

If not, and you plan to add such a thing, it would be cool to be able to set this in general - not only within run configurations as it is with other languages like Java in the runtime configurations.

Kind regards,

Robert

Comments (4)

  1. Scott Wells repo owner

    Marking this as resolved as that's JetBrains' way of accomodating such network topologies. Feel free to reopen if you can't configure a proper solution.

  2. Log in to comment