-
Notifications
You must be signed in to change notification settings - Fork 0
FAQ
James McLeod edited this page Dec 1, 2020
·
1 revision
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.
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 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>