Bypass CA certificate verification

Hello. We have Testiny hosted on a local VPN with a self-signed certificate.
When uploading the report from CLI, it indicates:

export TESTINY_APP_URL=XXXXXXXXXXX
export TESTINY_API_KEY=XXXXXXXXXXX
./testiny-importer-linux automation --project TCF-1 --source “demo” --junit reports/TESTS-test.xml
 o---o  ----------------------------
   |      TESTINY IMPORTER  1.31.0
   \-o  ----------------------------

Import error:  The provided API key or URL is not valid: self-signed certificate

The valid CA certificate is exported and the CA certificate list is correctly updated in Linux.
With curl to the URL, it indicates:

*  SSL certificate verify ok.

How can we bypass certificate verification to accept a self-signed certificate or specify a particular certificate?

Hi and welcome to the Testiny forum!

The certificate check is done by node.js that the importer is based on.
Before starting the Testiny CLI, you can set a root certificate to use by specifying a local file, e.g. like the following where myca.pem is your custom root certificate:

NODE_EXTRA_CA_CERTS=myca.pem

As I wrote, this is a node feature, you can find more info in their documentation:

Hope that helps!

Regards,
Alex