Skip to content
James McLeod edited this page Dec 1, 2020 · 1 revision

How can I tell simple-rest-tester to accept self-signed certificates?

This can be handled using Node's NODE_EXTRA_CA_CERTS environment variable. Put the self-signed certificate somewhere simple-rest-tester can read it from and set NODE_EXTRA_CA_CERTS to the location of the file.

Linux

To accept self-signed certificates for single run of simple-rest-tester using bash or similar shells:

NODE_EXTRA_CA_CERTS=<path-to-cert.pem> simple-rest-tester

You may also set this environment variable for the length of the shell session:

export NODE_EXTRA_CA_CERTS=<path-to-cert.pem>

Windows

Windows doesn't easily support setting an environment variable for a single command, so you will need to set it either in system settings or in command in your current shell session:

SET NODE_EXTRA_CA_CERTS=<path-to-cert.pem>
Clone this wiki locally