Twitch API on Windows 2012 R2 Server

My calls to the Twich API no longer work when they previously did. I am getting an SSL error now. My Windows 2012 R2 server has TLS 1.2 enabled. Does accessing the Twitch API now require TLS 1.3? My call to get an access token returns an access token just fine. But the follow up call to check if a user is online throws the SSL error. The code works fine when Im debugging from my local Visual Studio but fails on the server.

“The SSL connection could not be established”
“at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)”

Given that EOL for Windows 2012 R2 is EOL October 10, 2023 the issue here is likely that there is no cert bundle update for this not supported OS[1]

And most if not all SSL sites will fail to work as the Root SSL Certs in the chain are expiring on what you have on file and cannot update becuase your OS is EOL.

You might be able to manually perform the step of updating/installing latest/more recent SSL certificates, but it is more optimal to upgrade your OS to something that is in support.

[1] - Windows Server 2012 and 2012 R2 reaching end of support - Microsoft Lifecycle | Microsoft Learn

Windows Server 2012 and Windows Server 2012 R2 will end on October 10, 2023 . After this date, these products will no longer receive security updates, non-security updates, bug fixes, technical support, or online technical content updates.

SSL cert bundles to verify certificates are part of “security”

related: curl - SSL CA Certificates

Thanks, I will look into upgrading the server OS if possible