Install the AwakeCoding.DebugTools PowerShell module:
Install-Module -Name AwakeCoding.DebugTools -Scope AllUsers -Force
Open PowerShell 7 elevated, then install the PSDetour PowerShell module:
Install-Module -Name PSDetour -Scope AllUsers -Force
Start logging TLS pre-master secrets ('C:\Windows\Temp\tls-lsa.log' by default):
Start-LsaTlsKeyLog
Start TLS key log server to watch a TLS key log file and send changes to connected TCP clients:
Start-TlsKeyLogServer -LogFile 'C:\Windows\Temp\tls-lsa.log' -Port 12345 -AllowInFirewall
On another machine, start the TLS key log client to connect collect TLS pre-master secrets and output them to a local file:
Start-TlsKeyLogClient -Servers '10.10.0.25:12345' -LogFile "C:\Windows\Temp\sslkeylogfile.txt"
Install-WinDbg
Install-DbgHelp