gioboa / jira-plugin

Jira plugin for VsCode
https://marketplace.visualstudio.com/items?itemName=gioboa.jira-plugin
MIT License
266 stars 41 forks source link

issue: Unable to verify the first certificate with VS Code 1.36 #121

Closed magneticcore closed 5 years ago

magneticcore commented 5 years ago

After VS Code updating to v1.36 from 1.35, Jira Plugin stopped to work, raising the error "Unable to verify the first certificate" (before updating, all was ok).

For a test, I tried to use the environment variable NODE_TLS_REJECT_UNAUTHRIZED=0, but without success, VS Code giving me another error.

Any idea?

Version: 1.36.0 (user setup) Commit: 0f3794b38477eea13fb47fbe15a42798e6129338 Date: 2019-07-03T13:25:46.372Z Electron: 4.2.5 Chrome: 69.0.3497.128 Node.js: 10.11.0 V8: 6.9.427.31-electron.0 OS: Windows_NT x64 6.1.7601

magneticcore commented 5 years ago

I put also your setting jira-plugin.strictSSL to false and http.proxyStrictSSL to false with http.proxy correctly given

gioboa commented 5 years ago

Hi @magneticcore , Did you try to set StrictSSL param?

UPDATE

I put also your setting jira-plugin.strictSSL to false and http.proxyStrictSSL to false with http.proxy correctly given

Did you restart VsCode? What is the error in the output log?

magneticcore commented 5 years ago

In the output log of Jira-Plugin, there is only the error message "unable to verify first certificate"

gioboa commented 5 years ago

Have a look at this issue maybe are related. I think you can solve the problem by using this extension

magneticcore commented 5 years ago

After rolling back from version 0.18.1 to 0.17.0, Jira plugin is working again, I just needed to switch the setting jira-plugin.strictSSL to true, reload vscode, switch to false and reload vscode.

Note: version 0.18.0 gives the same error

gioboa commented 5 years ago

So now you are using 0.17.0 version? Mmmm... maybe it's a dependency lib issue...

magneticcore commented 5 years ago

Yes, I'm using again 0.17.0 and it works, but only after doing the switch on/off of the setting jira-plugin.strictSSL.

Ans still with VS Code version 1.36.0

gioboa commented 5 years ago

I checked the code of the dependency lib and seems ignore my strictSSL flag. I will fix the plugin code and I will release a new minor version. Thanks for your feedback 👍

gioboa commented 5 years ago

The new version 0.18.2 will solve this issue. You must set strictSSL = 'false', restart VsCode and it will works as expected. 👍

magneticcore commented 5 years ago

Version 0.18.2: Work again perfectly, thank you for the correction and reactivity!