Test
trusts the
certificates signed by a recognized certificate authority (CA). When you have any additional
CAs, you must extend the trusted certificates list by using an environment variable on
Windows.
-
Right-click the Windows icon
from the Windows taskbar, and then click
System.
-
Click Advanced system settings from the
Related setting section.
-
Click the Advanced tab, and then click
Environment Variables.
-
Click New from the System variables
section.
-
Enter NODE_EXTRA_CA_CERTS in the
Variable name field.
-
Enter the path of the downloaded CA with the file extension in the
Variable value field.
For example, if you stored the ca-master.crt CA
in the C:\Users\Desktop\cert location, then enter the
Variable value field as
C:\Users\Desktop\cert\ca-master.crt
-
Click OK.
You have extended the trusted CA certificates list on
Windows.