An error occurred in the secure channel support

A couple days ago i noticed that all my API calls were getting the error “An error occurred in the secure channel support -2147012890”. I can access all the API endpoints using the URLs I’m calling in my code like https://api.twitch.tv/kraken/users?login=14wojciechal&client_id=XXXXXXX&api_version=5 but not in my program. Doing some research it seems this is an TLS or SSL issue and I have tried various fixes but its still broken on my bot server and my home pc within my program. Since I have done nothing to my server or my code for the past couple weeks it seems unlikely that it’s something on my end so I was wondering if anyone else has experienced this issue or has something happened with the api servers recently I’m unaware of?

That may suggest that the clock on your server/pc has wandered too far out of date.

Which is odd but possible.

Could also be that your SSL Cert bundle is out of date, so run a software update.

I’m not seeing similar myself

Clock was correct and refreshing SSL didnt work either. I’ll just keep trying stuff i guess

Just an update if anyone has this problem in the future, I did get it fixed. What worked for me was adding 2 registry keys. I’m still not sure why this problem randomly came about without me doing anything.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp
New > Dword(32bit) > DefaultSecureProtocols
Value = 800

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp
New > Dword(32bit) > DefaultSecureProtocols
Value = 800

Source: https://support.microsoft.com/en-us/help/3140245/update-to-enable-tls-1-1-and-tls-1-2-as-default-secure-protocols-in-wi

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.