3scale-archive / 3scale-cli

DEPRECATED Beta of 3scale CLI, manage your 3scale installation directly from terminal (community supported)
https://www.3scale.net
MIT License
9 stars 21 forks source link

Allow Insecure Calls to the 3scale APIs #69

Open tnscorcoran opened 6 years ago

tnscorcoran commented 6 years ago

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.

mikz commented 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.

picsoung commented 6 years ago

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