{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/2190","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/2190/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/2190/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/2190/events","html_url":"https://github.com/dotnet/cli/issues/2190","id":145202443,"number":2190,"title":"Dotnet restore fails behind corporate proxy","user":{"login":"kkokosa","id":11159779,"avatar_url":"https://avatars.githubusercontent.com/u/11159779?v=3","gravatar_id":"","url":"https://api.github.com/users/kkokosa","html_url":"https://github.com/kkokosa","followers_url":"https://api.github.com/users/kkokosa/followers","following_url":"https://api.github.com/users/kkokosa/following{/other_user}","gists_url":"https://api.github.com/users/kkokosa/gists{/gist_id}","starred_url":"https://api.github.com/users/kkokosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkokosa/subscriptions","organizations_url":"https://api.github.com/users/kkokosa/orgs","repos_url":"https://api.github.com/users/kkokosa/repos","events_url":"https://api.github.com/users/kkokosa/events{/privacy}","received_events_url":"https://api.github.com/users/kkokosa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-01T14:54:24Z","updated_at":"2016-05-10T14:41:30Z","closed_at":null,"body":"## Steps to reproduce\r\n\r\nCreate new Dockerfile as follows:\r\n\r\n```\r\nFROM microsoft/dotnet\r\n\r\nENV http_proxy http://user:login@host:port\r\nENV https_proxy http://user:login@host:port\r\n\r\nCOPY ./Proxy_CA.crt /usr/local/share/ca-certificates/Proxy_CA.crt\r\nRUN [\"sudo\", \"update-ca-certificates\"]\r\nCMD [\"bash\"]\r\n```\r\n\r\nThen build new image:\r\n\r\n`sudo docker build -t dotnet-cmd .`\r\n\r\n## Actual behavior\r\n\r\nRun a new container:\r\n\r\n`sudo docker run -it dotnet-cmd`\r\n\r\nThen, inside container:\r\n\r\n```\r\nroot@b268392801e3:/# mkdir temp\r\nroot@b268392801e3:/# cd temp\r\nroot@b268392801e3:/temp# dotnet new\r\nCreated new C# project in /temp.\r\nroot@b268392801e3:/temp# dotnet restore\r\nlog  : Restoring packages for /temp/project.json...\r\nerror: The reason phrase must not contain new-line characters.\r\n```\r\n\r\nwhile normal curl works:\r\n\r\n```\r\nroot@b268392801e3:/temp# curl https://dotnet.myget.org/F/dotnet-core/api/v3/index.json\r\n{\"version\":\"3.0.0-beta.1\", ...\r\nroot@b268392801e3:/temp# curl https://api.nuget.org/v3/index.json                     \r\n{\r\n  \"version\": \"3.0.0-beta.1\", ...\r\n```\r\n\r\nFull verbose output from dotnet restore:\r\n\r\n```\r\nroot@b268392801e3:/temp# dotnet restore -v debug\r\ntrace: Running restore with 2 concurrent jobs.\r\ntrace: Reading project file /temp/project.json.\r\ntrace: Loaded project temp from /temp/project.json.\r\ntrace: Found project root directory: /temp.\r\ntrace: Using packages directory: /root/.nuget/packages/.\r\nlog  : Restoring packages for /temp/project.json...\r\ntrace: Restoring packages for DNXCore,Version=v5.0...\r\nerror: The reason phrase must not contain new-line characters.\r\ntrace: System.AggregateException: One or more errors occurred. (The reason phrase must not contain new-line characters.) ---> System.FormatException: The reason phrase must not contain new-line characters.\r\ntrace:    at System.Net.Http.HttpResponseMessage.set_ReasonPhrase(String value)\r\ntrace:    at System.Net.Http.CurlResponseParseUtils.ReadStatusLine(HttpResponseMessage response, String responseHeader)\r\ntrace:    at System.Net.Http.CurlHandler.TryParseStatusLine(HttpResponseMessage response, String responseHeader, EasyRequest state)\r\ntrace:    at System.Net.Http.CurlHandler.MultiAgent.CurlReceiveHeadersCallback(IntPtr buffer, UInt64 size, UInt64 nitems, IntPtr context)\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Protocol.HttpRetryHandler.<SendAsync>d__13.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Protocol.HttpSource.<SendWithCredentialSupportAsync>d__25.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Protocol.HttpSource.<GetThrottled>d__20.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Protocol.HttpSource.<GetAsync>d__18.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Protocol.Core.v3.ServiceIndexResourceV3Provider.<GetIndexJson>d__8.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Protocol.Core.v3.ServiceIndexResourceV3Provider.<TryCreate>d__9.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__11`1.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__10`1.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Protocol.Core.v3.RemoteRepositories.HttpFileSystemBasedFindPackageByIdResourceProvider.<TryCreate>d__2.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__11`1.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__10`1.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.DependencyResolver.SourceRepositoryDependencyProvider.<EnsureResource>d__13.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.DependencyResolver.SourceRepositoryDependencyProvider.<FindLibraryAsync>d__8.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<>c__DisplayClass15_1.<<FindLibrary>b__0>d.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibrary>d__15.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibraryByVersion>d__14.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibraryMatch>d__11.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibraryEntry>d__8.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<CreateGraphNode>d__3.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<CreateGraphNode>d__3.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Commands.RestoreCommand.<WalkDependenciesAsync>d__18.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Commands.RestoreCommand.<TryRestore>d__9.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Commands.RestoreCommand.<ExecuteRestoreAsync>d__8.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Commands.RestoreCommand.<ExecuteAsync>d__7.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.CommandLine.XPlat.Program.<ExecuteRestoreAsync>d__14.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.CommandLine.XPlat.Program.<>c__DisplayClass7_2.<<Main>b__4>d.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.CommandLine.XPlat.Program.<CompleteTaskAsync>d__10.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.CommandLine.XPlat.Program.<>c__DisplayClass7_1.<<Main>b__3>d.MoveNext()\r\ntrace:    --- End of inner exception stack trace ---\r\ntrace:    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\r\ntrace:    at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)\r\ntrace:    at Microsoft.Dnx.Runtime.Common.CommandLine.CommandLineApplication.Execute(String[] args)\r\ntrace:    at NuGet.CommandLine.XPlat.Program.Main(String[] args)\r\ntrace: ---> (Inner Exception #0) System.FormatException: The reason phrase must not contain new-line characters.\r\ntrace:    at System.Net.Http.HttpResponseMessage.set_ReasonPhrase(String value)\r\ntrace:    at System.Net.Http.CurlResponseParseUtils.ReadStatusLine(HttpResponseMessage response, String responseHeader)\r\ntrace:    at System.Net.Http.CurlHandler.TryParseStatusLine(HttpResponseMessage response, String responseHeader, EasyRequest state)\r\ntrace:    at System.Net.Http.CurlHandler.MultiAgent.CurlReceiveHeadersCallback(IntPtr buffer, UInt64 size, UInt64 nitems, IntPtr context)\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Protocol.HttpRetryHandler.<SendAsync>d__13.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Protocol.HttpSource.<SendWithCredentialSupportAsync>d__25.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Protocol.HttpSource.<GetThrottled>d__20.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Protocol.HttpSource.<GetAsync>d__18.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Protocol.Core.v3.ServiceIndexResourceV3Provider.<GetIndexJson>d__8.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Protocol.Core.v3.ServiceIndexResourceV3Provider.<TryCreate>d__9.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__11`1.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__10`1.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Protocol.Core.v3.RemoteRepositories.HttpFileSystemBasedFindPackageByIdResourceProvider.<TryCreate>d__2.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__11`1.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__10`1.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.DependencyResolver.SourceRepositoryDependencyProvider.<EnsureResource>d__13.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.DependencyResolver.SourceRepositoryDependencyProvider.<FindLibraryAsync>d__8.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<>c__DisplayClass15_1.<<FindLibrary>b__0>d.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibrary>d__15.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibraryByVersion>d__14.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibraryMatch>d__11.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibraryEntry>d__8.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<CreateGraphNode>d__3.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<CreateGraphNode>d__3.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Commands.RestoreCommand.<WalkDependenciesAsync>d__18.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Commands.RestoreCommand.<TryRestore>d__9.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Commands.RestoreCommand.<ExecuteRestoreAsync>d__8.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.Commands.RestoreCommand.<ExecuteAsync>d__7.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.CommandLine.XPlat.Program.<ExecuteRestoreAsync>d__14.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.CommandLine.XPlat.Program.<>c__DisplayClass7_2.<<Main>b__4>d.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.CommandLine.XPlat.Program.<CompleteTaskAsync>d__10.MoveNext()\r\ntrace: --- End of stack trace from previous location where exception was thrown ---\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\ntrace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\ntrace:    at NuGet.CommandLine.XPlat.Program.<>c__DisplayClass7_1.<<Main>b__3>d.MoveNext()<---\r\n\r\n```\r\n\r\n**Note:** without configuring Proxy_CA.crt `curl` is failing with the following error so I believe `dotnet` is somehow ignoring it, while `curl` does not:\r\n\r\n```\r\nroot@4c12f5a8da73:/test# curl https://dotnet.myget.org/F/dotnet-core/api/v3/index.json\r\ncurl: (60) SSL certificate problem: self signed certificate in certificate chain\r\nMore details here: http://curl.haxx.se/docs/sslcerts.html\r\n\r\ncurl performs SSL certificate verification by default, using a \"bundle\"\r\n of Certificate Authority (CA) public keys (CA certs). If the default\r\n bundle file isn't adequate, you can specify an alternate file\r\n using the --cacert option.\r\nIf this HTTPS server uses a certificate signed by a CA represented in\r\n the bundle, the certificate verification probably failed due to a\r\n problem with the certificate (it might be expired, or the name might\r\n not match the domain name in the URL).\r\nIf you'd like to turn off curl's verification of the certificate, use\r\n the -k (or --insecure) option.\r\n```\r\n\r\n**Note:** our proxy is using Active Directory credentianls, provided by the `user:login` in the proxy settings.\r\n\r\n## Environment data\r\n`dotnet --info` output:\r\n\r\n```\r\nroot@b268392801e3:/temp# dotnet --version\r\n.NET Command Line Tools (1.0.0-beta-001598)\r\n\r\nProduct Information:\r\n Version:     1.0.0-beta-001598\r\n Commit Sha:  N/A\r\n\r\nRuntime Environment:\r\n OS Name:     ubuntu\r\n OS Version:  14.04\r\n OS Platform: Linux\r\n Runtime Id:  ubuntu.14.04-x64\r\n```\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/218178861","html_url":"https://github.com/dotnet/cli/issues/2190#issuecomment-218178861","issue_url":"https://api.github.com/repos/dotnet/cli/issues/2190","id":218178861,"user":{"login":"harikm86","id":10966488,"avatar_url":"https://avatars.githubusercontent.com/u/10966488?v=3","gravatar_id":"","url":"https://api.github.com/users/harikm86","html_url":"https://github.com/harikm86","followers_url":"https://api.github.com/users/harikm86/followers","following_url":"https://api.github.com/users/harikm86/following{/other_user}","gists_url":"https://api.github.com/users/harikm86/gists{/gist_id}","starred_url":"https://api.github.com/users/harikm86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harikm86/subscriptions","organizations_url":"https://api.github.com/users/harikm86/orgs","repos_url":"https://api.github.com/users/harikm86/repos","events_url":"https://api.github.com/users/harikm86/events{/privacy}","received_events_url":"https://api.github.com/users/harikm86/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T14:41:30Z","updated_at":"2016-05-10T14:41:30Z","body":"Can you try setting the Proxy settings in nuget.config? More information available here https://docs.nuget.org/consume/nuget-config-settings#proxy-settings"}}