Azure / Azure/azure-functions-core-tools
Error: self signed certificate in certificate chain behind corporate proxy
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 498
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 14
Description
I did the below set up and ran npm install
1. **Setup config properties**
npm config set proxy http://proxy.*.*.com:8080
npm config set https-proxy http://proxy.*.*.com:8080
npm set strict-ssl false
npm config set NODE_TLS_REJECT_UNAUTHORIZED=0
2. **Modified Azure function core tools code as per** [reference](https://github.com/Azure/azure-functions-core-tools/commit/3f5716a5efc6601865c69115bf71bcfc967773c6)
3. **Ran npm install command and got the below error**.
**Error**:
"> azure-functions-core-tools@2.0.1-beta.26 postinstall C:\Users\kamiresu\AzureDevops\azure-functions-core-tools\src\Azure.Functions.Cli\npm
> node lib/install.js
attempting to GET "https://functionscdn.azureedge.net/public/2.0.1-beta.26/Azure.Functions.Cli.win-x64.2.0.1-beta.26.zip"
using proxy server "http://proxy.*.*.com:8080/"
Error: self signed certificate in certificate chain
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! azure-functions-core-tools@2.0.1-beta.26 postinstall: `node lib/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the azure-functions-core-tools@2.0.1-beta.26 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\kamiresu\AppData\Roaming\npm-cache\_logs\2019-12-24T06_19_07_709Z-debug.log"
Contributor guide
Research direction
Start with src/Azure.Functions.Cli/npm/lib/install.js, the postinstall entry point shown in the error, and inspect how the download uses the configured proxy and TLS settings. Reproduce npm install behind a corporate proxy, then determine the supported certificate or proxy behavior needed for the archive download to complete successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, node.js
- Domain
- cli, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100