Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Get-TlsCipherSuite in PowerShell & Server 2012 R2

My PowerShell TLS module doesn't seem to contain the cmdlet Get-TlsCipherSuite:

PS> (Get-Module tls).ExportedCommands

Key                         Value
---                         -----
Disable-TlsSessionTicketKey Disable-TlsSessionTicketKey
Enable-TlsSessionTicketKey  Enable-TlsSessionTicketKey
Export-TlsSessionTicketKey  Export-TlsSessionTicketKey
New-TlsSessionTicketKey     New-TlsSessionTicketKey

But I'm not sure how I can update it.

I am on PS 5.1

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      14409  1018

I have attempted

PS> Update-Module tls
Update-Module : Module 'tls' was not installed by using Install-Module, so it
cannot be updated.

Edit:

I think this is a limitation of Server 2012 R2 as the cmdlet is not listed under 2012 here

https://learn.microsoft.com/en-us/powershell/module/tls/?view=win10-ps

However, it is listed for 2016. Is there a way to import this command to 2012 R2?

like image 244
FrankU32 Avatar asked Oct 18 '19 09:10

FrankU32


People also ask

How do I check TLS version in Windows PowerShell?

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client\DisabledByDefault is present, the value should be 0. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client\Enabled is present, value should be 1.


2 Answers

As per the documentation the TLS module in Windows Server 2012 R2 doesn't have the cmdlet you're looking for. As far as I'm aware you cannot update the module without upgrading to a more recent Windows version.

like image 63
Ansgar Wiechers Avatar answered Oct 16 '22 16:10

Ansgar Wiechers


Get-ItemPropertyValue -Path HKLM:\SYSTEM\CurrentControlSet\Control\Cryptography\Configuration\Local\SSL\00010002 -Name Functions
like image 1
Arjun G Avatar answered Oct 16 '22 16:10

Arjun G