cli-microsoft365: Error: Self signed certificate in certificate chain with spo connect

I took a look at the other issue located https://github.com/pnp/office365-cli/issues/447

I have a similar issue. I’m behind a corporate proxy. Here is my ouput with --debug

> o365 spo connect https://tangodp-admin.sharepoint.com --debug
Disconnecting from SPO...
DONE
Authenticating with SharePoint Online at https://tangodp-admin.sharepoint.com...
No existing access token or expired. Token: , ExpiresAt:
Starting Auth.ensureAccessTokenWithDeviceCode. resource: https://tangodp-admin.sharepoint.com, debug: true
No existing refresh token. Starting new device code flow...
Thu, 28 Jun 2018 20:46:41 GMT:76be204b-a071-4fff-932d-ba4957c9e0f1 - Authority: VERBOSE: Performing instance discovery
Thu, 28 Jun 2018 20:46:41 GMT:76be204b-a071-4fff-932d-ba4957c9e0f1 - Authority: VERBOSE: Performing static instance discovery
Thu, 28 Jun 2018 20:46:41 GMT:76be204b-a071-4fff-932d-ba4957c9e0f1 - Authority: VERBOSE: Authority validated via static instance discovery.
Thu, 28 Jun 2018 20:46:41 GMT:76be204b-a071-4fff-932d-ba4957c9e0f1 - DeviceCodeRequest: INFO: Getting user code info.
Response:
undefined
Error:
self signed certificate in certificate chain

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (9 by maintainers)

Most upvoted comments

We can close this for now. We decided to go another route so it seems this wasn’t acceptable for our use case. Thank you!

@VelinGeorgiev I’m not sure if it’s that. A while back we switched to using ADAL JS for auth, so these requests shouldn’t be coming through request native. I can check if there is anything similar in ADAL JS.