Azure Cli login failed with self signed certificate error

Category: azure scripting and command line tools


iamjamalkhan on Fri, 17 Feb 2017 19:05:31

Hi Experts,

I am trying to use Azure Cli on Windows through command line and facing issue while trying to login using Azure cli. Here is the error I see on the azure.err file

{ [Error: self signed certificate]
  stack: [Getter/Setter],
   { name: '__1',
     line: 50,
     file: 'C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI\\lib\\commands\\login.js',
     prev: undefined,
     calls: 0,
     active: false,
     offset: 66,
     col: 27 },
  rawStack: [Getter] }
Error: self signed certificate
  <<< async stack >>>
  at __1 (C:\Program Files (x86)\Microsoft SDKs\Azure\CLI\lib\commands\login.js:116:28)
  <<< raw stack >>>
    at Error (native)
    at TLSSocket.<anonymous> (_tls_wrap.js:1039:38)
    at emitNone (events.js:67:13)
    at TLSSocket.emit (events.js:166:7)
    at TLSSocket._init.ssl.onclienthello.ssl.oncertcb.TLSSocket._finishInit (_tls_wrap.js:603:8)
    at TLSWrap.ssl.onclienthello.ssl.oncertcb.ssl.onnewsession.ssl.onhandshakedone (_tls_wrap.js:445:38)

Help me with this issue.




CHEEKATLAPRADEEP-MSFT on Fri, 17 Feb 2017 20:00:12

This is a known issue which we will be addressing in a future release. 

iamjamalkhan on Fri, 17 Feb 2017 20:22:31

Thanks Pradeep for the prompt reply.

iamjamalkhan on Fri, 17 Feb 2017 20:23:25

Do We have any workaround for this issue as of now?

Gary Gallanes [HCL Technologies] on Tue, 21 Feb 2017 17:00:07


I suggest using PowerShell instead of the CLI.  The PowerShell AzureRM Module doesn’t have the same issue as the CLI in TP2 refresh.


Gary Gallanes [HCL Technologies] on Wed, 01 Mar 2017 17:28:28

Azure Stack TP3 has been released on March 1, 2017.

If you are experiencing any issues with the TP2 release, please download and redeploy using the latest Azure Stack POC deployment package

Please see the updated deployment documentation:

And updated Azure Stack Docs:

If you experience any issues with TP3 release, feel free to contact us.