Environment Variables / Additional accepted Certificate Authorities while running Unit Tests
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)
-
reporter -
repo owner Hi, Robert. IC2 is not based on NodeJs and won’t use
NODE_*
environment variables (though it will propagate them to the Salesforce CLI when invoked). Please see the following user guide topic regarding SSL certificate substitution:That should allow you to configure the host IDE for the intermediate security tool.
-
repo owner - changed status to resolved
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.
-
repo owner - changed component to Apex Unit Testing
- Log in to comment
I’ve updated IC to 2.2.8.8. The problem remains.