π 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.
- Expand
SitesβDefault Web Site(or any custom site hosting Exchange virtual directories).
- Click on Logging in the middle pane.
- Click Select Fieldsβ¦
- 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
6οΈβ£ Apply & Save
- Click OK to save the new field.
- Apply the configuration.
- By default, the logs are stored under:
C:\inetpub\logs\LogFiles\W3SVC1 - Open them with Notepad or Excel.
- Look for the
crypt-protocolcolumn β you'll see values like 40 = TLS 1.1, 400 = 1.2, or older versions if they're still being used.
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-protocolusage. - Visualize trends to show management why it's safe to disable older protocols.