Command "init": handle self signed certs
We should "test" the given endpoint in the "init" command:
jira-shell init
url: https://my-haxx0r-jira.hackz
>> It seems that your endpoint doesn't serve a valid certificate.
>> Ignore certificate errors (INSECURE)? [y/N]
With "y" => we write a setting into the project file as noted below.
currently we circumvent this by setting
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0 as any;
The value should be read from the jira-shell project file:
"nodeEnv": {
NODE_TLS_REJECT_UNAUTHORIZED: 0
}
Edited by Patrick Bédat