Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloading package 'Mono Runtime (macOS)' Failed at stage: downloadPackages Error: self signed certificate in certificate chain #957

Closed
Jamie-McCaw opened this issue Nov 16, 2016 · 13 comments

Comments

@Jamie-McCaw
Copy link

Environment data

dotnet --info output:.
NET Command Line Tools (1.0.0-preview2-003148)

Product Information:
Version: 1.0.0-preview2-003148
Commit SHA-1 hash: 18ca244551

Runtime Environment:
OS Name: Mac OS X
OS Version: 10.11
OS Platform: Darwin
RID: osx.10.11-x64
VS Code version: 1.7.1
C# Extension version:1.5.2

Steps to reproduce

Installed Visual Studio Code for Mac OS
Opened VS Code
Because Firewall Set user settings:
{
"http.proxyStrictSSL": false
}
Installed C# for VS Code
Make new dotnet app in terminal
Open dotnet app folder

Expected behavior

Normal Behavior

Actual behavior

Alert = An error occurred during installation of the .NET Core Debugger. The C# extension may need to be reinstalled.

C# Output:

Updating C# dependencies...
Platform: darwin, x86_64 (osx.10.11-x64)

Downloading package 'Mono Runtime (macOS)' Failed at stage: downloadPackages
Error: self signed certificate in certificate chain

Finished
[ERROR]: C# Extension failed to install the debugger package

Tried reinstall VS Code, Mono, an the C# Extension multiple times.

@DustinCampbell
Copy link
Member

Hmmm... are you able to download from the following link? https://omnisharpdownload.blob.core.windows.net/ext/mono.osx-4.6.1.zip

@gregg-miskelly
Copy link
Contributor

Also, do you somehow have a proxy enabled (ex: "http.proxy" option, or environment variable)?

@Jamie-McCaw
Copy link
Author

@DustinCampbell I am able to download from that link.

@gregg-miskelly I don't believe I have any environment variables set. Not sure about the "http.proxy" option, except the User Settings one in VS Code I set to allow me to install extensions
{
"http.proxyStrictSSL": false
}

@DustinCampbell
Copy link
Member

Hmmm... @gregg-miskelly: it looks like we'll never use that option unless http.proxy is set.

@DustinCampbell
Copy link
Member

I bet we also need to set rejectUnauthorized here using the value of strictSSL.

@DustinCampbell
Copy link
Member

@Jamie-McCaw: I've produced the first beta of our next release which should address this problem. Could you install it and try it out? You can follow the steps below to install the beta:

  1. Open Visual Studio Code and select View->Extensions to display the Extensions Pane.
  2. In the Extensions pane, clear the little gear icon for the C# extension and select "Uninstall". Confirm Visual Studio Code's prompts and allow it to reload.
  3. Download the latest beta .vsix here.
  4. In the Extensions pane, click the [...] in the top-right corner and select "Install from VSIX...". Locate the .vsix you just download and click "Open".
  5. Allow Visual Studio Code to reload and open your project.

Let me know if the downloads work for you now.

@garoyeri
Copy link

This resolves the issue for me on Windows using VSCode 1.7.1.

@DustinCampbell
Copy link
Member

Excellent! Thanks for letting me know

@HjoshM
Copy link

HjoshM commented Oct 24, 2021

I get a similar error on my OS X El Capitan 10.11.6 mac with VS Code and the extension C# v1.11.0 ms-vscode.
It always tries to download when I launch VS Code and always fails.
I do not get an intellisense on C# or Unity code...
How do I fix this?

@JoeRobich
Copy link
Member

Hi @HjoshM, That is quite an old version of the C# extension. Are you able to update to the latest in the Extensions pane? Also, if you have "omnisharp.path" configured to "latest" in your settings, try removing that entry entirely.

@HjoshM
Copy link

HjoshM commented Oct 26, 2021

Hi @JoeRobich, Thanks for your reply.

I installed that from a file, because in quite a few posts, it was mentioned that it is the only one compatible with OS X El Capitan 10.11.6. Also, I cannot seem to find "omnisharp.path" in my settings.json file. Is that what you meant?

p.s.1 The highest .NET version I can install on this mac is 1.1.14.

p.s.2 Every time I launch VS Code, I see the following happening in the terminal:

Updating C# dependencies...
Platform: darwin, x86_64

Downloading package 'Mono Runtime (macOS)'
Retrying from 'https://omnisharpdownload.blob.core.windows.net/ext/mono.osx-5.2.0-omnisharp1.zip'
Downloading package 'Mono Framework Assemblies'
Retrying from 'https://omnisharpdownload.blob.core.windows.net/ext/framework-5.2.0-omnisharp1.zip'
Downloading package 'OmniSharp (Mono 4.6)'
Retrying from 'https://omnisharpdownload.blob.core.windows.net/ext/omnisharp-mono-1.21.0.zip'
Downloading package '.NET Core Debugger (macOS / x64)' (46460 KB)
.................... Done!

Installing package 'Mono Runtime (macOS)'
Failed at stage: installPackages
Error: end of central directory record signature not found

Finished

@JoeRobich
Copy link
Member

@HjoshM Sorry the storage account that used to host these old packages has been removed. Meaning these packages are no longer available for download.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants