admin管理员组文章数量:1415420
Background
- I want to capture and decrypt TLS packets from
curl.exe
included with Windows. curl
in the Linux environment supports theSSLKEYLOGFILE
environment variable to export a TLS session key.- Wireshark can import the TLS session key to decrypt captured TLS packets.
Problem
When I tried to export a TLS session key with the following command, nothing was exported to the specified path.
PS C:\tmp> $env:SSLKEYLOGFILE='C:/tmp/sslkey.log'; curl.exe -s
TESTFROMCURL
PS C:\tmp> ls C:/tmp/sslkey.log
ls : Cannot find path 'C:\tmp\sslkey.log' because it does not exist.
At line:1 char:1
+ ls C:/tmp/sslkey.log
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\tmp\sslkey.log:String) [Get-ChildItem], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
What I investigated
curl.exe --version
is like this. It sayscurl.exe
is built with Schannel rather than OpenSSL or LibreSSL.
PS C:\tmp> curl.exe --version
curl 8.10.1 (Windows) libcurl/8.10.1 Schannel zlib/1.3 WinIDN
Release-Date: 2024-09-18
Protocols: dict file ftp ftps http https imap imaps ipfs ipns mqtt pop3 pop3s smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS HSTS HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM SPNEGO SSL SSPI threadsafe Unicode UnixSockets
Everything curl
saysSSLKEYLOGFILE
requires OpenSSL, LibreSSL, BoringSSL, GnuTLS, or wolfSSL. /usingcurl/tls/sslkeylogfile.html#restrictions
Question
Is there any way to decrypt TLS packets from curl.exe
that is included with Windows? Is there any alternative to SSLKEYLOGFILE
?
本文标签: sslHow to decrypt TLS packets from Windows curlexe (alternative of SSLKEYLOGFILE)Stack Overflow
版权声明:本文标题:ssl - How to decrypt TLS packets from Windows curl.exe (alternative of SSLKEYLOGFILE) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745215483a2648139.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论