Extending the Trusted CA List for Evoko Home
After you download the Certified Authority (CA) certificate, you can add it to the trusted CAs list by setting the NODE_EXTRA_CA_CERTS environment variable with the location of the CA certificate.
About
When you use an internal CA certificate, you must extend the trusted certificates list by using the NODE_EXTRA_CA_CERTS environment variable with the location of the CA certificate to add the certificate as a trusted CA. You can then start or restart the Evoko Home (ERM) service.
In this example we will use OpenSSL to convert certificate to .pem format – depending on your downloaded certificate you might need - or - not need to do this.
Procedure
Choose the following steps depending on the operating system to set the CA certificate location to the environment variable NODE_EXTRA_CA_CERTS:
Windows
If you are using a Windows operating system, you must perform the following actions on the command prompt:
- Run the following command to convert the CA certificate to a PEM format:
- openssl x509 -in <CAcertificate.crt> -out <CustomName>.pem -outform PEM
- For example, openssl x509 -in mycert.crt -out mycert.pem -outform PEM
- Create the environment variable NODE_EXTRA_CA_CERTS by performing the following actions:
- Open the Environment Variables window.
- Click New from the System variables section.
- The New System Variable Window is displayed.
-
- Enter NODE_EXTRA_CA_CERTS in the Variable name field.
- Enter the location of the PEM certificate in the Variable value field.
- Click OK
-
Linux
If you are using Linux operating system, you must perform the following actions on the terminal window:
- Run the following command to convert the CA certificate to a PEM format:
- openssl x509 -in <CAcertificate.crt> -out <CustomName>.pem -outform PEM
- For example, openssl x509 -in mycert.crt -out mycert.pem -outform PEM
- Run the following command to add the NODE_EXTRA_CA_CERTS variable to your environment variables list:
- export NODE_EXTRA_CA_CERTS= <file path of PEM file>
- For example, export NODE_EXTRA_CA_CERTS= /opt/myData/cacert.pem
Results
You have extended the trusted CA certificates list that you want to trust with the NODE_EXTRA_CA_CERTS environment variable.