Thread (14 messages) flat view 14 messages, 4 authors, 2020-05-13

Re: [PATCH 2/2] http, imap-send: stop using CURLOPT_VERBOSE

From: Daniel Stenberg <hidden>
Date: 2020-05-13 06:18:15

On Tue, 12 May 2020, brian m. carlson wrote:

Sorry for going slightly off-topic, but I figure this could help as a sort of 
PSA.
Since everyone uses HTTPS, it's not possible to perform this debugging using 
a tool like Wireshark unless you use a MITM CA cert, which seems excessive.
When you want to Wireshark the connection with libcurl, your friend is 
SSLKEYLOGFILE. If you set that environment variable (assuming the libcurl TLS 
backend supports it - several do), libcurl will save the TLS secrets in the 
file that environment variable mentions - at run-time in a format that 
Wireshark understands.

Then you can analyze the traffic, in real time, with Wirehark without fiddling 
with a MITM etc.

-- 

  / daniel.haxx.se
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help