BITS An error occurred in the secure channel support

浪子不回头ぞ 提交于 2020-06-29 04:30:47

问题


We have a small application that we distribute together with our software to offer updates whenever a new application is ready. The C# .Net 4.6.1 application uses the BITS COM Interop distributed with Windows to download these updates from Azure CDN upon user request. We have discovered an issue that only seems to happen on Windows 7 (SP1 fully updated) where bits return the following:

Error code: -2147012739

ErrorDescription: An error occurred in the secure channel support

ErrorContext: BG_ERROR_CONTEXT_REMOTE_FILE

ErrorContextDescription: The error occurred while the remote file was being processed.

I have been able to reproduce the error using powershell that downloads a file (note that we are using a custom domain set on the endpoint for the CDN):

Import-Module BitsTransfer
Start-BitsTransfer https://updatecdn.sbohearing.com/Extractor.dll .\Extractor.dll

The file can be downloaded perfectly fine when pasting the url directly in Internet Explorer.

Using the Azure direct url to the file works:

Import-Module BitsTransfer
Start-BitsTransfer https://updateswscdnstorage.blob.core.windows.net/data/Extractor.dll .\Extractor.dll

Update 04-01-2020: This seems to be because Verizon no longer supports TLS 1.0/1.1, and even with KB3140245 installed BITS still defaults to 1.0. I will not be able to change the defaults through the registry as that would change behavior for other applications on my customers computers.

来源:https://stackoverflow.com/questions/59457118/bits-an-error-occurred-in-the-secure-channel-support

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!