Skip to the content.

TLSleuthPS v2.0.0 – Major Refactor & STARTTLS Support

Published: 28 February 2026

Version 2.0.0 of TLSleuthPS is now available on the PowerShell Gallery.

This release represents the largest internal refactor since the initial launch and introduces a highly requested capability: explicit transport support, including SMTP STARTTLS negotiation.


πŸš€ Major Refactor

TLSleuthPS has undergone a significant internal redesign to improve clarity, maintainability, and extensibility.

What Changed

Why This Matters

In previous versions, transport assumptions were tightly coupled with handshake logic. While functional, this limited extensibility.

The new architecture cleanly separates:

This design makes it significantly easier to:

Importantly, there are no breaking changes to the public output model.


✨ New Feature: STARTTLS Support

TLSleuthPS can now retrieve certificates from SMTP servers using STARTTLS negotiation.

Previously, TLSleuth assumed implicit TLS (such as SMTPS on port 465).
With v2.0.0, you can explicitly request STARTTLS on ports like 25 or 587.

Example: Retrieve Certificate from an SMTP Server

# New in v2.0.0
Get-TLSleuthCertificate -Hostname smtp.gmail.com -Port 25 -Transport SmtpStartTls

What happens internally:

  1. A TCP connection is established.
  2. SMTP greeting is received.
  3. The STARTTLS command is issued.
  4. The connection is upgraded to TLS.
  5. The certificate and negotiated TLS details are extracted.

This enables inspection of:


🧠 Architectural Improvements

Under the hood, the TLS negotiation pipeline is now layered and modular:

This approach improves:

Unit tests remain fully mock-driven. Integration tests continue to validate real TLS handshakes.


πŸ”§ Upgrade Instructions

Update from the PowerShell Gallery:

Update-Module TLSleuth

Or install fresh:

Install-Module TLSleuth -Scope CurrentUser

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


πŸ“Œ What’s Next?

The refactor in v2 lays the groundwork for future enhancements, including:


⭐ Feedback & Contributions

TLSleuthPS is open source and built for operators, engineers, and automation workflows that need fast, reliable TLS visibility.

If you find it useful:


Thank you for supporting TLSleuthPS πŸš€