What is the TLS version for SystemDefault as an output for ServicePointManager.SecurityProtocol in powershell?

Ajith 0 Reputation points
2024-09-01T19:46:17.2466667+00:00

I'm using powershell cmdlet to identify the SecurityProtocol we used in powershell.

PS /app> [System.Runtime.InteropServices.RuntimeEnvironment]::GetSystemVersion()
v8.0.4
PS /app> [Net.ServicePointManager]::SecurityProtocol
SystemDefault
PS /app> 

I'm getting SystemDefault as an answer which means we were not using TLS 1.0 right?

If we used we want to upgrad to TLS 2.0 because of deprecation announcement from Microsoft - https://learn.microsoft.com/en-us/security/engineering/solving-tls1-problem#testing-with-tls-12 , what needs to be done?

Windows Server Security
Windows Server Security
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
1,834 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,510 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue 36,751 Reputation points Microsoft Vendor
    2024-09-02T00:59:30.97+00:00

    Hi,

    SystemDefault is the recommended secure default which allows the operating system to choose the best protocol to use and to block insecure protocols.

    https://learn.microsoft.com/en-us/dotnet/api/system.net.securityprotocoltype?view=net-8.0

    Please the TLS protocol version support in different windows versions can be found here.

    https://learn.microsoft.com/en-us/windows/win32/secauthn/protocols-in-tls-ssl--schannel-ssp-#tls-protocol-version-support

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.