I have been trying to communicate with a secure REST API using POST, passing the certificate correctly, but I keep receiving the error "The request was aborted: Could not create SSL/TLS secure channel" only on the production server.
I don't have the option to upgrade the Microsoft Windows Server 2008 R2.
Microsoft Framework 4.8 is installed, all patches have been applied, and all security protocols are enabled.
--running the same POST using POSTMAN on the server 2008 works perfectly
Do any of you know why PowerShell script isn't working on only the server?
Running the same Powershell script locally it works perfectly under windows 11
Do you guys have any suggestions? I've tried many things so far and nothing has worked :(
Thank you so much




You may need to ensure Tls1.2 is enabled for SCHANNEL in the registry. Start at this key:
Create it if it doesn't already exist and make sure there's an
Enableddword set to1. Also, any changes to the SCHANNEL configuration won't take effect until you restart the server.Next, check that .Net is configured in the registry to use strong cryptographic protocols:
Then this line in your PowerShell should actually be effective:
But, as I indicated in a comment, you really should do whatever you need to get to permission to upgrade the server.
Windows Server 2008 R2 is fully end-of-life, and has been for several years now. This means it hasn't had any updates in that time... not even critical security patches, in spite of multiple active critical-rated CVEs. It's dangerous and irresponsible to still be using it; lawyers might use phrases like "gross negligence".
I should hope so, as there haven't been any new patches released in several years.
The minimum safe version to be using today is Windows Server 2016 (2012 R2 also reaches end of life in less than a week.) This is the kind of thing worth finding a new job over, as you don't want to the be one held responsible when (not if) this thing is breached.