Azure-functions-core-tools: Error: self signed certificate in certificate chain

Created on 15 Jun 2020  路  5Comments  路  Source: Azure/azure-functions-core-tools

When ever I am trying to execute the following command:
npm install -g azure-functions-core-tools@3 --force,
I am getting the following error:
attempting to GET "https://functionscdn.azureedge.net/public/3.0.2534/Azure.Functions.Cli.win-x64.3.0.2534.zip"
using proxy server "http://*
:*@*.**.com"
Error: self signed certificate in certificate chain

Furthermore,
I have already tried many available option suggested by node community like

  • npm config set NODE_TLS_REJECT_UNAUTHORIZED=0
  • npm config set strict-ssl false --global
  • npm config set registry http://registry.npmjs.org/
  • npm config set ca=""
  • npm install npm -g --ca=null

While its working for some folks but for many its still an open issue.
Please look into this, this had become a show stopper in Function App Design.

Needs

All 5 comments

@Kaushik27 Can you try downloading the file from your browser? Does it give a similar error?

@anthonychu, yeap I am able to download the zip file directly from the browser.
Its just not working when package manager tries to install it.
Let me know if you need anything else.

Same error here, but with error: Error: unable to get local issuer certificate

@angelcervera can you share more information about your environment.

@angelcervera, please share more details on it, so that they can reproduce.
@anthonychu, any update on my problem?

Was this page helpful?
0 / 5 - 0 ratings