-
Notifications
You must be signed in to change notification settings - Fork 520
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
Support TLS > 1.0 #2174
Comments
Mhm no idea what's wrong. Is there something in the .NET framework that
needs to be activated? I think we don't do anything special.
Am 06.03.2017 09:13 schrieb "Maarten Balliauw" <[email protected]>:
… Description
We tried installing a NuGet package from a server that only supports TLS
version 1.1 and up. It seems Paket expects TLS 1.0 to be available, looking
at the verbose log we get.
Repro steps
Unfortunately we don't have a public server to repro, but we do have a log
(see below).
All we did was a paket install nuget SamplePackage which we'd expect to
"just work".
Expected behavior
Package is installed.
Actual behavior
Verbose log:
Paket version 3.36.1
found: C:\Users\maart\Downloads\paket.dependencies
Parsing C:\Users\maart\Downloads\paket.dependencies
Adding SamplePackage to C:\Users\maart\Downloads\paket.dependencies into group Main
Resolving packages for group Main:
0 packages in resolution. 1 requirements left
Trying to resolve SamplePackage (from C:\Users\maart\Downloads\paket.dependencies)
- fetching versions for SamplePackage
Error while retrieving 'https://***redacted***/api/v3/index.json': System.AggregateException: One or more errors occurred. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
--- End of inner exception stack trace ---
at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
--- End of inner exception stack trace ---
at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)<---
getAllVersionsAPI: System.Exception: Could not load resources from https://***redacted***/api/v3/index.json
at Microsoft.FSharp.Core.Operators.FailWith[T](String message)
at ***@***.***(FSharpOption`1 _arg1)
at ***@***.***(a a)
getAllVersionsFromNugetODataWithFilter from url 'https://***redacted***/api/v2/Packages?$filter=tolower(Id) eq 'SamplePackage''
getAllVersionsFromNugetODataFindById from url 'https://***redacted***/api/v2/FindPackagesById()?id='SamplePackage''
Error while retrieving 'https://***redacted***/api/v2/package-versions/SamplePackage?includePrerelease=true': System.AggregateException: One or more errors occurred. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
--- End of inner exception stack trace ---
at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
--- End of inner exception stack trace ---
at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)<---
getAllVersionsFromNugetODataFindById from url 'https://***redacted***/api/v2/FindPackagesById()?id='SamplePackage''
getAllVersionsFromNugetODataWithFilter from url 'https://***redacted***/api/v2/Packages?$filter=tolower(Id) eq 'SamplePackage''
Error while retrieving 'https://***redacted***/api/v2/package-versions/SamplePackage?includePrerelease=true': System.AggregateException: One or more errors occurred. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
--- End of inner exception stack trace ---
at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
--- End of inner exception stack trace ---
at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)<---
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2174>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADgNGYXUb5WjIp_e-AbVM7oGrJhp6Utks5ri8AdgaJpZM4MT1qC>
.
|
http://blogs.perficient.com/microsoft/2016/04/tsl-1-2-and-net-support/ Looks like you may want to add something like:
|
Can you please test if it's fixed? thanks |
Works like a charm! |
Cool. Any idea how this could work on coreclr?
Am 13.03.2017 19:57 schrieb "Maarten Balliauw" <[email protected]>:
… Works like a charm!
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#2174 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADgNMrY-gtg3tv5mYoo-pbGFnG6Eym2ks5rlZGdgaJpZM4MT1qC>
.
|
Not sure, not a lot of info out there :-( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
We tried installing a NuGet package from a server that only supports TLS version 1.1 and up. It seems Paket expects TLS 1.0 to be available, looking at the verbose log we get.
Repro steps
Unfortunately we don't have a public server to repro, but we do have a log (see below).
All we did was a
paket add nuget SamplePackage
which we'd expect to "just work".Expected behavior
Package is installed.
Actual behavior
Verbose log:
The text was updated successfully, but these errors were encountered: