janjoerke / vscode-jenkins-pipeline-linter-connector

MIT License
60 stars 21 forks source link

Error: unable to verify the first certificate for jenkins urls with https #3

Closed TristanFAURE closed 6 years ago

TristanFAURE commented 6 years ago

Hello thanks for this extension !

I am testing the 1.1.2 my jenkins is connected through https and when I run the validation I got : "Error: unable to verify the first certificate"

how can i fix that ? is it possible to set a strict-ssl parameter to false ?

Regards

janjoerke commented 6 years ago

Hello, i am not sure right now. I hope I will find some time on Monday to look into it. Sadly I have no server with a certificate on hand to test it, so I would really appreciate your support here.

I will update the issue, when I know more.

janjoerke commented 6 years ago

I have added an option for disabling strict ssl validation. You can find the changes in the branch:

feature/strictssl

https://github.com/janjoerke/vscode-jenkins-pipeline-linter-connector/tree/feature/strictssl

Please checkout this branch, open the folder with VSCode and start a Debugging Session (F5) to try this change with your server.

If it works for you, i will incorporate the change in the next release, if not we´ll have to dig further.

TristanFAURE commented 6 years ago

I would be able to test it next week. Thank you for the change

cvakiitho commented 6 years ago

Hi, I have the same problem, I tried opening this branch in VSCode -> F5, and it just stops the debugging process right away, with nothing interesting in debug console.

EDIT:

Ah ok, I get it, I have to then open Jenkinsfile.

In that case:

Activating extension 'janjoerke.jenkins-pipeline-linter-connector' failed: Cannot find module 'xxxxdevel/vscode-jenkins-pipeline-linter-connector/out/extension'.
extensionHostProcess.js:621
Activating extension `janjoerke.jenkins-pipeline-linter-connector` failed:  Cannot find module 'xxxxdevel/vscode-jenkins-pipeline-linter-connector/out/extension'
extensionHostProcess.js:293
Here is the error stack:  Error: Cannot find module 'xxxdevel/vscode-jenkins-pipeline-linter-connector/out/extension'

Ah ok, I probably have to build it first :D ... I'm slower, but I'll eventually get there.

OK Final edit, I think it works, because I no longer see cert error, I get this though:

TypeError: The header content contains invalid characters

Probably some wrong setup on my side.

TristanFAURE commented 6 years ago

Hi, I've checkout the branch but with my company I can't install the vscode dependency. Does somebody can zip me the node_modules folder ?

cvakiitho commented 6 years ago

https://sap-my.sharepoint.com/:u:/p/tomas_hartmann/ESWqROKrR6pJgUsWX1s_fmwBDonbxMZN-LNI3ZCozEqV_A?e=YRys0J

TristanFAURE commented 6 years ago

perfect it works ! with strict ssl true : Error: unable to verify the first certificate with strict ssl false : Jenkinsfile successfully validated.

thank you very much, a nice enhancement would be to select certificates (but for the current FR it is totally fine)

janjoerke commented 6 years ago

I released 1.1.3, which contains the changes. Thank you for your assistance.