Skip to the content.

TLSleuth is a PowerShell module for quickly inspecting TLS/SSL endpoints and certificates from the shell or in scripts. It’s a pragmatic, scriptable helper—not a full-blown TLS scanner.


Features


Install

From the PowerShell Gallery:

Install-Module TLSleuth -Scope CurrentUser
Import-Module TLSleuth

Recommended: PowerShell 7+. Supported: Windows PowerShell 5.1 (with reduced TLS/cipher detail).


Quick Start

# Fetch cert + handshake details
Get-TLSleuthCertificate -Hostname example.com

# Constrain protocol to TLS 1.2
Get-TLSleuthCertificate -Hostname example.com -TlsProtocols Tls12

# Include local chain build + revocation checks
Get-TLSleuthCertificate -Hostname example.com -IncludeChain -CheckRevocation

# Pipeline support
'github.com','microsoft.com' |
  Get-TLSleuthCertificate -IncludeChain |
  Select Host,Protocol,CipherSuite,@{n='PrimaryDNS';e={$_.Certificate.PrimaryDnsName}},IsTrusted

# Verbose tracing (timings per helper)
Get-TLSleuthCertificate -Hostname example.com -Verbose

If you connect by IP but need proper SNI, pass -ServerName example.com.