chocolatey-archive / chocolatey

[DEPRECATED - https://github.com/chocolatey/choco] Chocolatey NuGet - Like apt-get, but for windows.
https://chocolatey.org
Apache License 2.0
2.8k stars 344 forks source link

The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. #252

Closed prongs closed 11 years ago

prongs commented 11 years ago

image

Any idea why this might be happening? I am behind a proxy. Could that be causing any problems?

ferventcoder commented 11 years ago

Does it work when you are not behind the proxy?

prongs commented 11 years ago

I don't know. On Feb 24, 2013 7:50 PM, "Rob Reynolds" notifications@github.com wrote:

Does it work when you are not behind the proxy?

— Reply to this email directly or view it on GitHubhttps://github.com/chocolatey/chocolatey/issues/252#issuecomment-14009009.

ferventcoder commented 11 years ago

Try cinst jivkik.dev1 -debug

prongs commented 11 years ago

image

prongs commented 11 years ago

I have sockss proxy enabled.

image

ferventcoder commented 11 years ago

You may have an incompatible proxy for nuget.exe. You may want to do some searching around to see what is required to work with socks proxies.

prongs commented 11 years ago

Chocolatey doesn't use IE's proxy settings. It rather uses http_proxy environment variable. So I used polipo to wrap socks proxy with an http proxy and set the env variable. Worked like a charm!

ferventcoder commented 11 years ago

Cool. It might be a good idea if we add a proxy wiki page.

prongs commented 11 years ago

Sure. Let me know how I can help. On Feb 25, 2013 12:23 AM, "Rob Reynolds" notifications@github.com wrote:

Cool. It might be a good idea if we add a proxy wiki page.

— Reply to this email directly or view it on GitHubhttps://github.com/chocolatey/chocolatey/issues/252#issuecomment-14013502.

ferventcoder commented 11 years ago

If you want to take a stab at creating a page on the wiki with proxy related information, I can review it. If not, I'll create one later.

prongs commented 11 years ago

https://github.com/chocolatey/chocolatey/wiki/Proxy-Settings-for-Chocolatey

ferventcoder commented 11 years ago

Cool - thanks!

rayjlim commented 11 years ago

I saw seeing this error when trying to install command It was fixed if I use http: instead of https: in the URL.

ggrussenmeyer commented 9 years ago

Just for information, after struggling with the exact same error message for a few hours, it turned out that the certificate of the root CA that delivered the chocolatey.org certificate (Go Daddy Root Certificate Authority - G2) was not present int my Windows trusted root CA certificate store (although present in Firefox own's trust store). Importing it manually in the Windows store fixed the issue.

esters commented 9 years ago

@ggrussenmeyer thank you for the information. I had the same issue on Windows XP. Importing the GoDaddy Class 2 Certification Authority Root Certificate - G2 (https://certs.godaddy.com/repository/gdroot-g2.crt) solved the issue.

nturley commented 8 years ago

I had this problem on a clean windows install. I opened internet explorer. Allowed it to update (presumably updating it's certificates). That solved the problem.

ferventcoder commented 8 years ago

For anyone else that comes across this link - https://github.com/chocolatey/choco/wiki/Proxy-Settings-for-Chocolatey#still-having-trust-issues