- Newest
- Most votes
- Most comments
Yes, you can indeed force PowerShell to use TLS 1.2. PowerShell, by default, may not use the latest version of TLS, so you may have to explicitly specify that you want to use TLS 1.2. This can be done by adding the following command at the beginning of your PowerShell script:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
The above line of code sets the default security protocol to TLS 1.2.
Another important aspect to consider is the .NET Framework version installed on the Windows Server 2012 R2. You should ensure that .NET Framework 4.5 or later is installed, because TLS 1.1 and TLS 1.2 are not supported in versions prior to .NET Framework 4.5.
Also, keep in mind that even though you've updated PowerShell, the underlying .NET Framework could still be an older version. It's possible to have newer versions of PowerShell running on top of older versions of .NET Framework. Therefore, you might need to update .NET Framework on your Windows Server 2012 R2.
Please try the suggested approach, and let me know if it solves your issue.
Relevant content
- asked 8 months ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
YES! That seems to have done the trick as the log file from this morning's upload specifically indicates "TLSv1.2". Thanks very much, Ivan!