问题
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