-
Notifications
You must be signed in to change notification settings - Fork 905
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
Unable to connect to source / NullReferenceException / Unable to create an SSL/TLS secure channel / could not create ssl/tls secure channel #3244
Comments
@scls19fr are you familiar with how to use Fiddler? https://www.telerik.com/fiddler. It would be very useful to see the outgoing requests and responses when this happens, in order to try to track down exactly what is going on. Is this something you would be able to help provide? |
I never used it but can probably give it a try with some guidance. |
@scls19fr that would be great! I have it on my list to create a short video of how to use it, in the context of debugging Chocolatey requests. I will try to get that video ready as soon as possible! |
@scls19fr I have put together a short video of how to look at the request/responses that are being used by the Chocolatey CLI in this short video: It would be great if you could have a watch of that video, and then grab the session archive at the time you are seeing the problem in Chocolatey CLI. Let me know here if you run into any problems with grabbing the required information. Thanks! |
Thanks @gep13 can you email me at (edited) to have a private chat ? I can provide a Teamviewer access if you want |
@scls19fr that isn't something that I can offer right now, no. If you don't get anywhere with the Fiddler session archive, then perhaps we can look to doing a paired session. |
ok I will try Fiddler Classic now |
That's odd because after accepting Fiddler certificate mentioned at https://youtu.be/z4CwJ-MF7ik?t=256 the problem disappear. |
It's only working without error message when Fiddler is "Capturing"... if Capturing is disabled it doesn't work anymore |
That is really weird. The output of |
I think I have a certificate problem because I get (with Fiddler disabled)
ie
|
Which Fiddler version should I download for Windows 7? There are 5 versions available, maybe the Fiddler Classic? |
I used Fiddler Classic but I'm using Windows 10 |
Wouldn't be easier to have an option to disable secure connection?
|
I don't think disabling ssl is "fashionable'. I think my system is messed up (and probably yours also)... It's probably a certificate problem. I ever encoutered exactly same issue "Unable to create an SSL/TLS secure channel" or "could not create ssl/tls secure channel" (I don't know the exact english translation) with an other program (a VPN to connect to my work network). The simplest workaround (but the longuest) will probably to reinstall Windows. I will do that in the next coming days / weeks if noone can give us some ideas to fix that. |
You are welcome to not use TLS. Chocolatey works just fine without it (all of my local repository testing is against http). You however cannot use any host that is at chocolatey.org without https. And many other internet sites also prevent non-secure connections. Further, the underlying nuget libraries emit messages that http is deprecated and planned to be blocked in the future. |
In the video that I linked to, I am using the application that is installed via |
Chocolatey CLI aims to be as secure as possible, so providing an option to bypass SSL/TLS is not something that we would be considering. |
I can't think of a reason to explain why Chocolatey commands would work successfully when running Fiddler, and for those same commands to not work when Fiddler isn't running. This is very strange. |
At 3:48 says: I've noticed that you didn't restart.
The problem didn't disappear for me, still investigating. |
You are right @superbonaci I forgot to restart (because I'm not a native english listener... and so I missed that part of the video... and probably more). On my side I decided to take the simple (but quite long) path ... reinstall Windows and thanks to Boxstarter my system is nearly ready (and I'm not encountering this issue anymore). Thanks @gep13 and all for your help and great software |
We have a problem here, because my issue #3250 is marked as a duplicate of this one but hasn't been fixed yet. |
You shouldn't mark the issue as solved until you actually reinstall windows and verify that is working, maybe happens the same again. |
Ok reopening so |
Here's the first Fiddler's session log (there are 12 but they are exactly the same): Raw Headers (Read-only)
Response (Raw)
|
@scls19fr install chocolatey 1.4.0 works for me. #3250 |
@scls19fr @superbonaci I am going to go ahead and close out this issue again. @superbonaci as discussed in your other issue, I believe the root cause to be different, even though the error that is surfaced to the command line is the same.
Glad to hear that you are back up and running! |
@scls19fr @superbonaci I have also added a follow up documentation issue here: chocolatey/docs#772 to try to capture more information regarding this problem, and how to resolve it. |
Checklist
What You Are Seeing?
Trying to upgrade all packages raises a NullReferenceException
I was using previously 1.4 version than upgrade to 2.0 where things are going wrong so I decided to delete
C:\ProgramData\chocolatey
directory (probably not my best idea) than reinstalling Chocolatey latest version 2.1 ... but it didn't fix my problemWhat is Expected?
Should upgrade all packages
How Did You Get This To Happen?
System Details
Installed Packages
>choco list Chocolatey v2.1.0 chocolatey 2.1.0 1 packages installed.
The text was updated successfully, but these errors were encountered: