Extending the trusted CA list
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.
Before you begin
You must have configured the certificate that is used by Rational® Test Automation Server as a trusted CA, and then install Rational® Test Automation Server. See Installation of the server software.
About this task
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 Azure agent.
Procedure
- 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.
- Run the following command to convert the CA
certificate to a PEM format:
- If you are using a 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
- Run the following command to convert the CA
certificate to a PEM format: