Open tnscorcoran opened 6 years ago
@tnscorcoran I believe you just should configure https://nodejs.org/api/cli.html#cli_ssl_cert_file_file to point to the correct certificate and then it would validate the self signed certificate.
quick fix as explained in #49 is to run it with the NODE_TLS_REJECT_UNAUTHORIZED
parameter
like this: NODE_TLS_REJECT_UNAUTHORIZED=0 3scale-cli
Many 3scale On-Premises test installations use self-signed certificates. The CLI currently fails as the API calls aren't configured to allow insecure traffic.
Adding this allows them: process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
Request to be able to pass in a flag that sets this in the code.