how to log SSL/TLS protocol usage for Exchange Server using the CRYPT_PROTOCOL server variable.

πŸ” How to Log SSL/TLS Protocols in IIS for Exchange Server

Hey Exchange admins! Ever wondered which TLS protocols your clients are actually using to connect to your Exchange Server? With the push towards stronger encryption (TLS 1.2, TLS 1.3) and deprecating older versions, it's critical to know what's happening on the wire.

Today, let's look at how to log the CRYPT_PROTOCOL variable in IIS to monitor SSL/TLS usage for your Exchange web services.

βš™οΈ Why This MattersExchange Server relies heavily on IIS for all client connectivity: βœ… Outlook on the web (OWA) βœ… ECP βœ… EWS βœ… ActiveSync βœ… RPC/HTTP (Outlook Anywhere)

If you want to retire TLS 1.0/1.1, you need proof that no clients still rely on them. IIS logging with CRYPT_PROTOCOL shows you exactly which protocol version was negotiated for each request.

πŸ“ How to Enable Logging for CRYPT_PROTOCOLHere's a simple step-by-step:1️⃣ Open IIS Manager

  • Open the Internet Information Services (IIS) Manager on your Exchange Server.
2️⃣ Navigate to the Right Site
  • Expand Sites ➜ Default Web Site (or any custom site hosting Exchange virtual directories).
3️⃣ Open Logging Settings
  • Click on Logging in the middle pane.
4️⃣ Edit Log Fields
  • Click Select Fields…
5️⃣ Add Custom Field
  • In the W3C Logging Fields window, scroll down to Custom Fields.
  • Click Add Field…
  • Field Name: crypt-protocol
  • Source Type: Server Variable
  • Source: CRYPT_PROTOCOL
Image

6️⃣ Apply & Save

  • Click OK to save the new field.
  • Apply the configuration.
πŸ“‚ Where to Find the Logs
  • By default, the logs are stored under: C:\inetpub\logs\LogFiles\W3SVC1
  • Open them with Notepad or Excel.
  • Look for the crypt-protocol column β€” you'll see values like 40 = TLS 1.1, 400 = 1.2, or older versions if they're still being used.
🧹 Clean Up Old Protocols

Once you have data, you can: βœ… Identify outdated clients or devices still using TLS 1.0/1.1. βœ… Plan upgrades or retire legacy connections. βœ… Harden your environment by disabling older protocols once you're sure they're unused.

✨ Bonus Tip: Automate AnalysisThe raw logs can be huge. You can:

  • Use Log Parser Studio or PowerShell to filter crypt-protocol usage.
  • Visualize trends to show management why it's safe to disable older protocols.
**πŸ“Œ Closing ThoughtsπŸ”’ Keeping Exchange secure means keeping your TLS config up-to-date β€” and logging CRYPT_PROTOCOL in IIS is a simple but powerful step to monitor your real-world usage.πŸ’¬ Are you logging your protocols? Any surprises in your environment? Drop a comment and let's share insights!